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="&#x3c;"/> <xsl:variable name="greaterthan" select="&#x3e;"/>     <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:

&lt;xml version="1.0" encoding="utf-8"&gt; 

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">&lt;xml version="1.0" encoding="utf-8"&gt;</xsl:text> 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -