xslt - How to print < and > symbols which are part of text..? -
i can't figure out way output string :
<xml version="1.0" encoding="utf-8">
this tried:
<xsl:variable name="lessthan" select="<"/> <xsl:variable name="greaterthan" select=">"/> <xsl:value-of select="$lessthan"/> <xsl:text>xml version="1.0" encoding="utf-8"</xsl:text> <xsl:value-of select="$greaterthan"/>
but output i'm getting:
<xml version="1.0" encoding="utf-8">
i tried doin this:
<xsl:text><xml version="1.0" encoding="utf-8"></xsl:text>
but editor doesn't let me this.it throws error match end tag
ps:i not versed in xslt please reply if question sounds naive.
try this:
<xsl:text disable-output-escaping="yes"><xml version="1.0" encoding="utf-8"></xsl:text>