D
Derek Fountain
How do I get a three character string like
<p>
in my output? It thought using <p> should do it, but no. I get the
literal characters.
As a test I wrote this little bit of XSLT:
---
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html"/>
<xsl:template match="/">
<xsl:text>' < > " &</xsl:text>
</xsl:template>
</xsl:stylesheet>
---
When run I get:
The ' seems to convert to a ' correctly, but the others come out
literally. That's under Linux with libxml2, but I'm seeing the same issues
on Windows.
What have I done wrong?
<p>
in my output? It thought using <p> should do it, but no. I get the
literal characters.
As a test I wrote this little bit of XSLT:
---
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html"/>
<xsl:template match="/">
<xsl:text>' < > " &</xsl:text>
</xsl:template>
</xsl:stylesheet>
---
When run I get:
' < > " &xsltproc test1.xsl test1.xml
The ' seems to convert to a ' correctly, but the others come out
literally. That's under Linux with libxml2, but I'm seeing the same issues
on Windows.
What have I done wrong?