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

Re: SAX XPath Filter


sax xpath
Bart Swennenhuis wrote:

<snip/>

> 2. Of course I would like to improve the XPath support in the
>    QueryTransformerHandler. But it is very tricky to write this component.
>    I cannot find any code that I can use, but it is very unlikely that this
>    idea is new.
>    So I am looking for an org.xml.sax.ContentHandler that filters data from
>    a SAX stream, using XPath expressions.

This has come up before. I'd love to see a component like this. You'd
have to restrict what can be selected in expressions, of course (e.g. no
predicates selecting along the child axis), and have to maintain some
state from previous SAX events to help with pattern matching.

You may want to check out STX [1]. It's not Jaxen-based, though, and
it's still at a pretty early state. I've thought it would be cool to
have a Jaxen-based toolkit for supporting processors based upon the
Schema Adjunct Framework [2] and/or Schematron [3]. Ideally, these
should support SAX-based processing (with restrictions on patterns) or
document model-based processing using any Jaxen-supported model. I'm
hoping to get around to writing something like this, eventually.

Ah, the fun one can have with Jaxen. The opportunities are boundless.

[1] http://www.gingerall.cz/stx/index.html
[2] http://www.tibco.com/products/extensibility/saf/exec-summary/
[3] http://www.ascc.net/xml/resource/schematron/schematron.html

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.