Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Parsing an XML document from a URL

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Dave Pawson <dave.pawson AT gmail.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Parsing an XML document from a URL
  • Date: Sat, 8 May 2010 12:41:59 +0100

On 8 May 2010 12:00, Elliotte Rusty Harold <elharo AT ibiblio.org> wrote:
> On Sat, May 8, 2010 at 6:45 AM, Dave Pawson <dave.pawson AT gmail.com> wrote:
>
>> http://www.dpawson.co.uk/docbook/catalogs.html might help you
>> understand the use with XSLT,
>> I haven't used one with XOM, perhaps Elliotte can tell you
>> how to 'redirect' the resolver to use your catalog.
>>
>
> I've considered adding catalog support to XOM, but there's been any
> real demand for it. You should be able to use a SAX-based XML Catalog
> resolver as the base parser for XOM:
>
> http://xml.apache.org/commons/components/resolver/resolver-article.html
>
> --
> Elliotte Rusty Harold
> elharo AT ibiblio.org

java -cp
.:/sgml:/myjava/saxon655.jar:/myjava/xercesImple.jar:/myjava/resolver.jar
com.icl.saxon.StyleSheet -o $3 -x
org.apache.xml.resolver.tools.ResolvingXMLReader -y
org.apache.xml.resolver.tools.ResolvingXMLReader -r
org.apache.xml.resolver.tools.CatalogResolver -w1 $1 $2
"saxon.extensions=1" $4 $5 $6

The -x and -y and -r options provide the resolver access.
IMHO it's a worthwhile addition... redirection?

<grin/> Feature request Elliotte.

regards




--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk




Archive powered by MHonArc 2.6.24.

Top of Page