Subject:&+#x00A; are replacing with ' ' on click of Author:V Hem Date:28 Apr 2006 10:46 AM Originally Posted: 28 Apr 2006 10:44 AM
Hi
I have a XSL Template:
&+#x00A; - means "&" and "#x00A" one word - without the "+"
<xsl:template name="htmlify">
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text, '&+#x00A;')">
<xsl:variable name="before" select="substring-before($text, '&+#x00A;')"/>
<xsl:variable name="after" select="substring-after($text, '&+#x00A;')"/>
<xsl:value-of select="$before"/>
<xsl:call-template name="htmlify">
<xsl:with-param name="text" select="$after"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
everytime i click the "Ident XML Tags" button the &+#x00A; are replacing with ' '. How can I disable this?
Subject:&+#x00A; are replacing with ' ' on click of Author:Minollo I. Date:28 Apr 2006 11:07 AM
The "indent" operation goes through a parsing operation of your XSLT (or XML); and that forces the expansion of entities. We preserve those entities in all cases, except when they are used inside attribute values, as in your case.
In many cases you will get entities back in the indented result as a result of the serialization step; in the Stylus Studio version you are running, that happens for &, but not for 
. In the next release, 2006rel3 - available in June, 
 will be preserved too.