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] Does SAX make sense?

[ Lists Home | Date Index | Thread Index ]

From: "Miles Sabin" <miles@milessabin.com>

> Jeff Rafter wrote,
> > XPath comes up here and came up in several of the other responses.
> > Perhaps someone could answer what class of XPaths, if known prior to
> > document parse, can not be satisfied during the document parsing?
> 
> Often it's not so much the class of XPaths that can be matched during a 
> forward parse with no (or limited) state that cause trouble. Often it's 
> what you want to do with the matches when you've got them. For example, 
> if you need to generate output from the matches in some sorted order, 
> then no amount of cleverness on the input side is going to allow you to 
> do without preserving all matches until the arrival of the last.

You only need to preserve the sort-keys to the matches. You can generate them
all as (external or internal) entities (or whatever inclusion mechanism you are
using) and then output the entity references in sorted order.  

The same goes for including data before it has been encountered.

Cheers
Rick Jelliffe




 

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

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