|
Subject: [xsl] Xalan complains about the pound - '£' character. From: Sai.Matam@xxxxxxxxxxxxxxxx Date: Thu, 22 Aug 2002 16:29:15 -0700 |
I am using Xalan/Xerces version - 2.2D14. Xalan complains when
applying XSL to the XML file containing the '£' character. If I replace
the '£' with the £ then XSL processing goes fine.
The specic exception I get is
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xa3)
was found in the element content of the document.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.xml.sax.SAXException.<init>(SAXException.java:45)
at org.xml.sax.SAXParseException.<init>(SAXParseException.java:56)
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:588)
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(XMLParser.java:1098)
at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:426)
at org.apache.xalan.transformer.TransformerImpl.transform(Compiled
Code)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1092)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1070)
I tried using encoding="ISO-8859-1" but still no luck.
At the moment, the only solution I have is to 'pre-process' the XML files
and
replace all '£' characters with £ - but I would like a better solution.
Any help would be greatly appreciated.
Thank you.
regards
-- Sai
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] My Difficult counting pro, Girard Tim-TGIRARD1 | Thread | [xsl] RE: [xsl] Xalan complains abo, Julian Reschke |
| RE: [xsl] My Difficult counting pro, Girard Tim-TGIRARD1 | Date | RE: [xsl] A - B, Michael Leditschke |
| Month |