OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] linking, 80/20

[ Lists Home | Date Index | Thread Index ]

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@talsever.com      alicorn@mindspring.com
Tongue-tied and twisted, just an earthbound misfit, I.
                -- Pink Floyd




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS