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

Re: debugging document() call

Subject: Re: debugging document() call
From: Lars Huttar <lars_huttar@xxxxxxx>
Date: Wed, 30 Jun 2010 14:00:02 -0500
Re:  debugging document() call
On 6/30/2010 1:44 PM, Lars Huttar wrote:
> On 6/30/2010 11:35 AM, Michael Kay wrote:
>   
>>
>>>   
>>>       
>> Subclass the standard URI resolver with your own and see how it's
>> being called.
>>
>>
>>     
>
> What class should I subclass, and how do I get Saxon to use my subclass?
>
> Thanks,
> Lars
>
>   

I just found
http://saxon.sourceforge.net/saxon7.9/extensibility.html#Writing-a-uri-resolver
which says, "Saxon allows you to write your own URIResolver to handle
the URIs of input documents, as defined in the JAXP 1.1 specification.
Such a URIResolver is used to process the URIs used in the |xsl:include|
and |xsl:import| declarations as well as the |document()| function. ..."

That sounds like a step in the right direction...
but how do I tell Saxon to use my URIResolver?

I also found a sample here:
http://www.udel.edu/CIS/software/dist/saxonb8-6-1/samples/java/TraxExamples.java
that defines a UserURIResolver that implements URIResolver,
and uses

  transformer.setURIResolver(new UserURIResolver(transformer));
to tell the system to use the UserURIResolver.
Is that the sort of thing I should do?
If so, where would I put the call to
	transformer.setURIResolver()?

Sorry, I'm in the dark when it comes to Java, JAXP and all that.
I'm just a lowly XSLT programmer. ;-)
(tongue-in-cheek)

Lars

Current Thread

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
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.