AProm - Wednesday, April 23, 2014 7:33 AM:
Hi,
I want to modify existing reports, but the code shown in the stylesheet tab is html instead of xsl.
I use Innovator 10.0 with Firefox 24 ESR. I didn't get IE10 working. IE11 is not supported.
Any ideas are welcome.
Thanks,
Andreas
gks - Tuesday, April 29, 2014 3:16 AM:
The stylesheets are usually a mix of html and xslt. The first lines should start with:
<xsl:stylesheet xmlns:xsl="www.w3.org/.../Transform" version="1.0">
<xsl:output method="html" omit-xml-declaration="yes" standalone="yes" indent="yes"/>
<xsl:template match="/">
and then usually a lot of html with some <xsl:choose> etc in between.
Depending on the stylesheet the ration between xsl tags and html varies.
As stylesheets morphs aml to html you will always have some html embeded.
AProm - Friday, May 2, 2014 5:44 AM:
Hi George,
I understand that stylesheets are a mix, but I just see it in kind of html like:
<html><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"></head><style userdata="Global" type="text/css">
.cellSolid {text-align:center;border-top:1px #000000 solid;border-right:1px #000000 solid;border-bottom:1px #000000 solid;border-left:1px #000000 solid;}
.cellSolidTopRight {border-top:1px #000000 solid;border-right:1px #000000 solid;}
there is no <xsl:stylesheet...
There must be a reason for this.
I found a way around. When I export reports using the export tool then I can edit them and copy to the reports. But the second I apply and save, the view changes back to just html.
Regards,
Andreas
Brian - Sunday, May 11, 2014 8:29 PM:
Hi Andreas,
There is a bug in the display of stylesheets in the report editor.
If you use AML Studio to export the entire report you will see the actual stylesheet code (all the xslt).
Copy the <xsl_stylesheet>... </xsl_stylesheet> entry into Visual Studio or another editor and change your xslt.
You will have to replace "<" with "<", ">" with ">" and "&" with "&" then change them back when you want to update the Report item again via AML Studio.
Let me know if you need any other instructions.
Hope this helps,
Brian.
heidi - Friday, September 5, 2014 7:00 AM:
Hi Brian
Please help wih "use AML Studio to export the entire report you will see the actual stylesheet code (all the xslt)"
I assume I use "export Itemtype" command? what code do I enter?
I would like to export the Multilevel BOM Report
I am not an xml/xslt expert...
Thanks so much!
Brian - Friday, September 5, 2014 8:46 AM:
Hi Heidi,
In AML studio you will want the Apply AML action.
<AML>
<Item type='Report' action='get'>
<name>Multilevel BOM Report</name>
</Item>
</AML>
Apply this and you should get the entire report definition. Look for the <xslt_stylesheet> tag.
This has the xslt code.
Copy this into Visual Studio or similar and change it as required.
Get the Report 'id' from the returned AML result and change your AML query to:
<Item type='Report' action='edit' id='report id just copied above' >
<xslt_stylesheet>
New stylesheet contents
</xslt_stylesheet>
</Item>
You will have to replace all < with < all > with > and all & with & in the stylesheet.
Be careful the order you do this in otherwise you will replace the & in the < statements etc.
Once you apply this the Report in Innovator will be changed based on the new xslt code.
Hope this helps,
Brian.
heidi - Sunday, September 7, 2014 7:18 AM:
Thank-you Brian!! Much appreciated!