This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Xalan complains about the pound - '£' character.


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 &#163; - 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]