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

Re: XInclude vs SAX vs validation

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: xml-dev@l...
  • Date: Sat, 01 Sep 2001 11:12:33 -0400

free editor wor
At 9:29 AM -0700 8/21/01, David Brownell wrote:


>It's interesting that XInclude is specified as "infoset merging", which
>is a model that's very much attuned to SAX processing.  If only it
>didn't use XPointer/XPath, thereby precluding pure stream-based
>processing models!
>

I found another place where stream based processing is a problem. The result  infoset has to include the unparsed entities and notation information items from the included document. These would need to included in a DTD referenced from the DOCTYPE declaration. This is naturally emitted at the start of processing. However, you don't know the complete list of these things until processing is finished. I suppose you could put them in a separate document loaded as an external DTD subset, and not emit this DTD fragment until processing is finished. However, then the emitted document could not be parsed by another parser until inclusion was complete. 

Interestingly, this is even more of a problem for DOM than SAX. DOM2 does not identify notations or unparsed entities. DOM Level 3 core doesn't either, although you might be able to hack it together using Abstract Schemas. 
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+

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.