Warning: org.xml.sax.SAXParseException: Using
Added by Anonymous over 19 years ago
Legacy ID: #3107718 Legacy Poster: Greg Mellinger (mellingg)
I am using saxon 8-1-1 on UNIX and receive the following warnings from Saxon even after adding an XSLT output-character to ensure that an NCR Decimal entity is output to my target document: Warning: org.xml.sax.SAXParseException: Using original entity definition for "&". Warning: org.xml.sax.SAXParseException: Using original entity definition for "'". Warning: org.xml.sax.SAXParseException: Using original entity definition for ">". Warning: org.xml.sax.SAXParseException: Using original entity definition for "<". Warning: org.xml.sax.SAXParseException: Using original entity definition for """. Warning: org.xml.sax.SAXParseException: Using original entity definition for "†". Warning: org.xml.sax.SAXParseException: Using original entity definition for "‡". Is there a way to 'turn off' warnings in Aelfred or eliminate these warnings?
Replies (1)
RE: Warning: org.xml.sax.SAXParseException: U - Added by Anonymous over 19 years ago
Legacy ID: #3107752 Legacy Poster: Michael Kay (mhkay)
These messages are produced by the Crimson XML parser, which is the default parser in JDK 1.4. If you move to JDK 1.5, the default parser is Xerces, and the warnings will go away. You could also get rid of them (a) by invoking Xerces as your chosen parser explicitly (b) by implementing your own ErrorHandler that discards the Crimson messages (c) by getting rid of the redundent entity definitions in your DTD. Michael Kay
Please register to reply