[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [xpattern] Stream Order Operator
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|