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

Re: SAX Topic 2004-0002: XML 1.1 support


x7 sax
> People who use such tools deserve to lose: if you can pass an element
> name of "@@@@" (which is no more valid 1.1 than it is 1.0) and get a
> purported XML 1.0 document written, then you might just as well go
> back to printf (or equivalent).

Umm, I disagree. There are many situations where this occurs in a pipeline
process-- as the output of another SAX stream of events. Think XML
formatters based on SAX. Currently such standalone filters have an
expectation of 1.0 names (as guaranteed by the SAX process)... with such a
change that expectation is betrayed. Such filters would have never received
"@@@@" from a SAX event stream to begin with...

> Remember, a 1.1 parser MUST accept 1.0 documents, and a document
> generator SHOULD generate 1.0 unless 1.1 is required by the content.
> Thus saith the 1.1 Rec.

Right... I am referring to non XML 1.1 filters. e.g.

XML 1.0 goes through SAX pipeline gets to XML 1.0 output filter
The content "foobar" gets parsed. SAX processor chokes, it never gets
to the output filter.

XML 1.1 goes through SAX pipeline that accepts 1.1 gets to XML 1.0 output
filter
The content "foobar" gets parsed. SAX processor accepts it and passes
it on-- it is output through the 1.0 filter mistakenly.

Granted this is just a versioning issue-- the moral of which is: don't use
old filters with newer SAX parsers which support 1.1 because they won't
work. It makes sense... but I also don't think that the filters as written
were inherently evil and that their users need to lose-- they just need to
upgrade everything when upgrading.

Cheers,
Jeff Rafter


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.