whitespace problem
Posted: Tue Jul 29, 2003 2:10 am
If, in a stylesheet, I try to create a variable for outputting a text carriage return, like so:
<xsl:variable name="newline"><xsl:text>
</xsl:text></xsl:variable>
The next time I open the document in oxygen, or pretty-print it, Oxygen incorrectly collapses this to:
<xsl:variable name="newline">
<xsl:text/>
</xsl:variable>
I believe this a bug, since a carriage return inside xsl:text should be treated as text, and not as if xsl:text element were empty. I believe the behavior should be the same even without the text element.
-n.
<xsl:variable name="newline"><xsl:text>
</xsl:text></xsl:variable>
The next time I open the document in oxygen, or pretty-print it, Oxygen incorrectly collapses this to:
<xsl:variable name="newline">
<xsl:text/>
</xsl:variable>
I believe this a bug, since a carriage return inside xsl:text should be treated as text, and not as if xsl:text element were empty. I believe the behavior should be the same even without the text element.
-n.