Categories
- All Categories
- 5 Oracle Analytics Sharing Center
- 11 Oracle Analytics Lounge
- 194 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.5K Oracle Analytics Forums
- 6K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 68 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
XML Comments in XSL sub-templates?

Strange things happen when I add XML comments to the XSL sub-templates embedded in my RTF report template.
This code works as expected.
<!-- Strip Suffixes --> <xsl:template name="StripSuffixes"> <xsl:param name="raw"/> ... </xsl:template> <!-- StripPrefixes --> <xsl:template name="StripPrefixes"> <xsl:param name="raw"/> ... </xsl:template> <!-- SUMMARY --> <xsl:variable xdofo:ctx="incontext" name="SUMMARY"> ... </xsl:variable> <!-- TOTALS --> <xsl:variable xdofo:ctx="incontext" name="TOTALS"> ... </xsl:variable>
Doesn't seem to matter how many words are in the first XML comment. However, it fails if I add words to the second XML comment (e.g.StripPrefixes
becomes Strip Prefixes
.
... <!-- Strip Prefixes --> <xsl:template name="StripPrefixes"> ...
But works fine if I add words to the last XML comment, instead (e.g. TOTALS
becomes All Totals
).
... <!-- All Totals --> <xsl:variable xdofo:ctx="incontext" name="TOTALS"> ...
Meaningful snippet from the ERROR:
... oracle.xdo.XDOException: oracle.xdo11g.xpath.XPathException: Variable not defined: 'raw'. ...
I'm thinking this has to do with where each block winds up in the output XSL-FO, but I have no idea how to control that. Documentation on context commands (xdofo:ctx
) is unfortunately limited. I tried moving all the <xsl:template>
blocks below the <xsl:variable>
blocks, but didn't help. Neither did specifying the "begin" context for the <xsl:template>
blocks.
Ultimately, I just want to add comments to help document and explain what the code is doing, etc. for the benefit of others who may need to understand it in the future.
What am I missing? What's the trick? Alternatives? Help?
Answers
-
Hi @ Eric Geddes
Are you still looking for an help reg. your question? or did you got the solution.
Regards,
Arjun
0 -
Hi Arjun. I have yet to figure out how to reliably comment the XSL I embed in an RTF report. Any help would be greatly appreciated. Thank you. - Eric
0