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

Re: Non-validating parser, non-existing DTD,undefined entity a


non validating sax parser
> Section 2.9: XML 1.0 -- "Standalone="yes" indicates there are no external
> markup declarations that affect the information passed from the XML
> processor to the application"
> 
> -- Can I ask you once more whether you think specifying an external subset
> is legal?? -- doesn't an external subset imply that there are external
> markup declarations??

They're legal if they don't _affect_ the information provided.
Where the information affected is a small subset of what
a parser normally provides; for example it doesn't include
attribute or element typing information.

For example, it would be illegal for the external subset to have
a declaration that caused an attribute value to change because
of normalization.  But it would be legal if the value were already
normalized, but the declaration just told you its type was "ID".


> > Not so -- see the conformance section of the XML rec, it
> > allows non-validating parsers which read external entities.
> > In fact as I noted, such parser modes are typical in Java.
> >
> > As I said, a SAX parser that tries to read that WILL get
> > an error, which is of course allowed.
> 
> Yes, they may process external entities, but am I right if I say that --
> "A non-validating parser *need not* issue an error if the URI pointing to
> an external entity is invalid"?? -- again this is what I kind of
> understood from Section 5: Conformance of XML 1.0..

In the scenario that I described -- a SAX parser is configured
to process those enitities -- the parser does _need_ to issue
an error.  "A non-validating parser" in general need not, like
a SAX parser that doesn't recognize that feature setting.

But a SAX parser that's explicitly told to process those entities
had darn well better process them!!

- Dave



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-2011 All Rights Reserved.