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

RE: Exception: Saxon requires an XML parser that repor

Subject: RE: Exception: Saxon requires an XML parser that reports the QName of each element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 24 Jun 2005 08:55:19 +0100
fn escape uri
Interesting.

Ignore the advice to use escape-uri(), it's irrelevant.

The SAX2 specification defines the method (in class ContentHandler)

	startElement(String uri, String localName, String qName, Attributes
atts)

and states that if the namespaces-prefixes property is false (which it is),
then the qName argument is optional. All mainstream XML parsers, however,
supply the qName attribute, and since it would be quite expensive for Saxon
to remember all the namespace prefixes just in case the qName is omitted
(and quite hard to find a parser to test this against), Saxon instead relies
on the parser supplying this argument, and reports a failure if it is not
present.

To get to the bottom of this we need to find out what the "XML parser" is.
The chances are that it's not a real XML parser, but some kind of filter
that's filtering the events from the real XML parser. Perhaps it can be
easily changed to report the qName.

I'm afraid I don't know enough about Cocoon to advise on how to investigate
this further.

Michael Kay
http://www.saxonica.com/

 

> -----Original Message-----
> From: Carlos M. S. Bento Nogueira [mailto:cmsbn@xxxxxxxxxxxxxxxxx] 
> Sent: 23 June 2005 17:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Exception: Saxon requires an XML parser that 
> reports the QName of each element
> 
> Hello xsl users.
> 
> I'm using saxon8 with cocoon 2.1.7. and i can't get rid of 
> the following 
> exception:
> org.xml.sax.SAXException: Saxon requires an XML parser that 
> reports the 
> QName of each element
> 
> Browsing the web and i found this never answered post in the cocoon 
> mailing list:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103799087924525&w=2
> 
> and an incomplete tip to solve the problem at:
> http://xmlfr.org/communautes/dev/listes/dev/2004/01/0034.html
> 
> When and how should i use the fn:escape-uri ?? I believe this 
> is a pure 
> xsl problem so i posted this question here.
> 
> TIA,
> CarlosN.
> 
> ps: No i can't use other parser...

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.