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

Re: linking, 80/20


80 20.net
On Mon, 2002-08-19 at 19:20, Erik Wilde wrote:
> i don't know sax too well, but shouldn't there already exist such a case 
> for 'attributes' and 'namespace attributes' of an element, so that when 
> an attribute declaring a namespace is being parsed, two events could be 
> raised? how does handle sax this?

A namespace declaration is not an attribute (even if DOM treats it like
one).  When you turn on namespace processing in SAX2, prefix mappings
are reported before the element that they appear on.  The thing that is
lexically an attribute in the XML is not reported as an attribute in the
start element event.

If namespace processing is enabled, then there are no prefix to
namespace mappings reported, and attributes may begin with the otherwise
reserved "xmlns" prefix.  This is also how SAX1 behaves.

> and yes, introducing infoset extensibility certainly would make any api 
> more complex, even though i think that the issues that were being raised 
> could be solved. and: if you didn't need or want access to the infoset 
> extensions, than you could still use a good old sax1/2 parser.

I don't believe that I made my point sufficiently clearly.  I think that
the infoset was designed to provide a full representation of the
interesting information in an XML instance.  Therefore, any additional
processing (such as the PSVI or the mooted XLink information items)
should be processed in a *different* layer.  Polluting the infoset is
not acceptable.  Adding a layer may be okay.

Keep in mind that once you add the layers, you immediately encounter a
problem of ordering.  Does schema validation happen before, or after
link information enhancement?  Note that the XQuery/XPath folks have
encountered this problem, and have declared that the XPath datamodel is
a transformation of the post-schema-validation infoset, which is itself
(in their discussion, last I checked) an enhancing transformation of the
infoset.  The infoset is left alone; order of processing is defined (but
note that this doesn't leave much room to add enhancements in different
directions, such as XLink).

The alternative, pushing the information items down into the infoset
itself, doesn't change the problem, it merely makes use of the infoset
as problematic as use of layers on top of the infoset currently is.

Amy!
-- 
Amelia A. Lewis       amyzing@t...      alicorn@m...
Tongue-tied and twisted, just an earthbound misfit, I.
                -- Pink Floyd

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.