From: "Christian Nentwich" <[EMAIL PROTECTED]> > > A few folks seem to have done XPath-subsets of this kinda thing. e.g. dom4j > > allows the registration of path based ElementHandler objects that allows you > > to process elements as they are parsed, which avoids needing the whole > > document in memory. > > We have classified what these "forward" paths would look like already as > part of STX (Streaming Transformations for XML). > > http://stx.gingerall.cz/stx/index.html
This looks really cool! Thanks for the link! Incidentally I've been working lately on something called Jelly http://jakarta.apache.org/commons/sandbox/jelly/ which is an open and extensible XML based scripting engine. <quick-intro> The basic idea is that an element name can be bound to a Tag which can consume, filter, process or transform SAX events. So its similar to JSP custom tag libraries, where anyone can write new tag libraries, but its based on a SAX pipeline and without the legacy JSP stuff. Jelly has tag libraries that implements a subset of JSTL (the JSP Standard Tag Library) as well as a tag library for working with Ant tasks.. JSTL contains a bunch of tags for working with XML, XPath and XSLT as well as SQL and beans. So a tags body can be parsed, made available as a variable so that XPath expresssions can be performed etc. Also Jelly has a tag library called JSL which is an XSLT-style declarative processing of XML using XPath patterns. The XPath support in Jelly is (suprise suprise) Jaxen so all document models are supported. </quick-intro> Now it could be really cool to implement the STX spec as a tag library that could be used inside Jelly; then STX, XSLT, XPath, SQL and beans could all be scripted together, in a single XML based scripting engine which is extensible and can support other scripting languages (beanshell, pnuts, JavaScript, Jython etc) to be integrated too. Then we'd be able to combine the best of all worlds, XPath, STX, XSLT, SQL, beans and other scripting languages all in a simple engine thats ultimately based on a SAX pipeline. James _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest