Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Custom XPath functions

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Steve Loughran'" <steve.loughran AT gmail.com>, "'xom-interest'" <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Custom XPath functions
  • Date: Wed, 25 Apr 2007 09:31:43 +0100

> I have a colleague who wants to do some custom XPath
> functions to do date tests, so you can select all nodes with
> a timestamp attr before or after a certain date.
>
> How can he do this in Xom?
>

You can do this by running the Saxon XPath processor using XOM as the
underlying data source. Saxon allows you to use the JAXP XPath API (which
includes the ability to bind XPath-callable functions) and allows you to run
XPath against a XOM document.

Michael Kay
http://www.saxonica.com/





Archive powered by MHonArc 2.6.24.

Top of Page