xsl-list
[Top] [All Lists]

Problem with control character

2003-09-03 12:23:45
I have encountered a truly annoying problem.  The enclosed stylesheet
does not work (with Xalan-J 2.5.1 or various other XSLT processors)
because apparently  is not a valid character for XML 1.0 (though
it will be allowed in 1.1).  Now, I have a large stylesheet that is
used to transform XML to text, and I need to output this character!
Is there any pure XSLT workaround for my problem, or do I have output
something like "JUNK" and have a (non-XSLT) script postprocess the
text to replace that with the required control character?

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

  <xsl:output method="text" encoding="UTF-8"/>

  <xsl:template match="/">
    Output &#21; character.
  </xsl:template>
</xsl:stylesheet>

-- 
Franklin

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>