[Home] [By Thread] [By Date] [Recent Entries]




On Wed, 19 Jan 2005, Alan Gutierrez wrote:  <excerpts>

>     XPath notion is a path language. It expresses paths in a
>     document.  I'd like to have a stream langauge.
>
>     Then you need something to indicate the order in the stream, I
>     suggest using the comma.
>     /a/b(foo, bar, baz)/c
>     /a(b/foo, b)/c
>
>     Then you can have proper pattern matching operators.
>     /a(b/foo+, b*)/c
>
>     Coming back to capturing.
>     /a(<b>, c = $1)

The above examples with ordering and regular expression operators suggest
you could consider basing XPattern on patterns derived from RelaxNG-like
types rather than from XPath-like paths.  If so, there is some prior work
that could be of use:
http://xduce.sourceforge.net/

XDuce didn't explicitly pursue support for streamed processing, but some
ideas might still be useful.  The paper [2] (in ACM Transactions) on
http://xduce.sourceforge.net/papers.html contains the most readable
introduction.

Vladimir

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member