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

RE: Entity resolution vs. URI resolution


xerces entity resolution
Schema location resolution is not just a special case and is more complex
than just URI redirection.  An application would typically want to locate a
schema resource by the namespace URI or the namespace URI plus some
additional information (such as the version attribute on an <xsl:transform>
element) and ignore any xsi:schemaLocation hint.

Since schema validation augments the infoset, it is necessary (or at least
useful) to resolve the location during the parsing of the document.

Sandy Gao, others and I had a very long discussion on this on the
Xerces-J-Dev mailing list in August 2001
(http://archive.covalent.net/xml/xerces-j-dev/2001/08/0119.xml and
following).  I believe that most of that got reflected in the Xerces-J 2's
schema resolution interfaces, but I haven't really followed it.

Basically, my take was that the parser should throw an event when it
encounters content that it cannot find an existing schema resource to
handle.  The handler should have access to any previously encountered
xsi:schemaLocation, the namespace URI and local name of the content that
caused the event and the untyped content of the start tag (so that you could
use something like an version attribute).


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.