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

RE: XMLFilter in a URIResolver

Subject: RE: XMLFilter in a URIResolver
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Thu, 11 Sep 2003 15:48:12 +0100
uriresolve
> When you supply a SAXSource to Saxon, Saxon sets the properties of the
> XMLReader supplied with the SAXSource to make sure that it is
reporting
> namespaces in the way that Saxon requires. Specifically it does:
> 
>      	parser.setFeature("http://xml.org/sax/features/namespaces",
> true);
> 
> parser.setFeature("http://xml.org/sax/features/namespace-prefixes",
> false);
> 
> A SAX2 parser is expected to recognize these properties; if it
responds
> to these requests with an exception, Saxon complains with the error
> message that you saw.
> 
> Your XMLFilter is pretending to be a SAX2 parser, so it must support
> these methods properly.

Ok... does that mean I should write a no-op setFeature method in my
XMLFilter to stop the error message, and then modify my startElement()
call to match that of a parser with those features set?

Currently I get the error: 

org.xml.sax.SAXNotRecognizedException: Feature:
http://xml.org/sax/features/namespaces

Do I need to use setFeature() on something other that the XMLFilter?  Or
do I need to modify the startElement() call to look at though the
features are set?  If I need to modify the startElement() call, how
would it look when there aren't any namespace involved (as in, it would
look exactly the same wouldn't it?)

Thanks for the continued help 

andrew


 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.