G
George Durzi
Consider the following very simple XSL transformation:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="text" encoding="ISO-8859-1"/>
<xsl:template match="/">
<George Durzi>
</xsl:template>
</xsl:stylesheet>
In a webform, I'm using the XSLTransform to write the contents of this
transformation to the browser, but I'm also changing the content type to
text/plain.
The resulting text is:
<George Durzi>
I want it to be:
<George Durzi>
My XSL works fine if the content-type I'm targetting is text/html, but not
for text/plain.
And since the < and > are reserved characters, I have to use the < and
>
any idea how I can get this to work? Notice that I've specified my
xslutput method to text
I'm also tried putting the < and > inside a CDATA section, but they still
get rendered as < and > in my resulting text file.
Thank you
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="text" encoding="ISO-8859-1"/>
<xsl:template match="/">
<George Durzi>
</xsl:template>
</xsl:stylesheet>
In a webform, I'm using the XSLTransform to write the contents of this
transformation to the browser, but I'm also changing the content type to
text/plain.
The resulting text is:
<George Durzi>
I want it to be:
<George Durzi>
My XSL works fine if the content-type I'm targetting is text/html, but not
for text/plain.
And since the < and > are reserved characters, I have to use the < and
>
any idea how I can get this to work? Notice that I've specified my
xslutput method to text
I'm also tried putting the < and > inside a CDATA section, but they still
get rendered as < and > in my resulting text file.
Thank you