[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan complains about the pound - '£' character.

Subject: Xalan complains about the pound - '£' character.
From: Sai.Matam@xxxxxxxxxxxxxxxx
Date: Thu, 22 Aug 2002 16:29:15 -0700
org.xml.sax.saxparseexception an invalid xml chara
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.