You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Art Welch <ar...@EASTPOINT.COM> on 2001/01/05 01:46:12 UTC

Form Feed character

I am using XalanJ1.2.2 to transform some XML into text. I need to include
Form Feed characters in the output. When I try to do something like
<xsl:text>&#x0C;</xsl:text> I get the following error:

chrysalisServlet(): Caught exception:
org.apache.xalan.xslt.XSLProcessorException: Character reference "&#x0C;" is
an invalid XML character.
chrysalisServlet(): Caught exception toString():
org.apache.xalan.xslt.XSLProcessorException: Character reference "&#x0C;" is
an invalid XML character.
chrysalisServlet(): Caught exception class:
org.apache.xalan.xslt.XSLProcessorException
org.apache.xalan.xslt.XSLProcessorException: Character reference "&#x0C;" is
an invalid XML character.
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at org.xml.sax.SAXException.<init>(Compiled Code)
        at org.apache.xalan.xpath.XPathException.<init>(Compiled Code)
        at org.apache.xalan.xslt.XSLProcessorException.<init>(Compiled Code)
        at org.apache.xalan.xslt.XSLTEngineImpl.error(Compiled Code)
        at org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(Compiled
Code)
        at com.eastpoint.chrysalis.XSLTDocumentHandler.startElement(Compiled
Code)
        at
com.eastpoint.chrysalis.chrysalisBaseDocumentHandler.startElement(Compiled
Code)
        at
com.eastpoint.chrysalis.chrysalisDocumentHandler.startElement(Compiled Code)
        at org.apache.xerces.parsers.SAXParser.startElement(Compiled Code)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(Compiled
Code)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(Co
mpiled Code)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
Code)
        at org.apache.xerces.framework.XMLParser.parse(Compiled Code)
        at
com.eastpoint.chrysalis.chrysalisProducerFromFile.process(Compiled Code)
        at com.eastpoint.chrysalis.chrysalisServlet.doProcess(Compiled Code)
        at com.eastpoint.chrysalis.chrysalisServlet.main(Compiled Code)

Things like <xsl:text>&#x0A;</xsl:text> and <xsl:text>&#x0D;</xsl:text> work
just fine. Does XML have something against Form Feeds? Is this an Xalan
problem (if it was XML - wouldn't Xerces complain before Xalan)? Is there
some way around this?

Thank You,
Art