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

RE: URIResover question

Subject: RE: URIResover question
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 25 Aug 2009 11:06:01 +0100
RE:  URIResover question
> For example here is an example of how it would fail
> 
> main.xsl  (imports both include/utils-a, and include/utils-b) include/
>   utils-a.xsl  (no imports here)
>   utils-b.xsl  (imports utils-a)
> 
> utils-b has the following
> 
> <xsl:import href="utils-a.xsl"/>
> 
> When resolve gets called, base="", and href="utils-a.xsl" so 
> my URIResolver doesn't know that it should look in the 
> include directory to find utils-a.xsl
> 

The value of base should be the absolute URI of utils-b.xsl.

Check that when your URIResolver selects utils-b.xsl, the Source object that
you return has its SystemId property set to the base URI of utils-b.xsl. It
might be that you are returning a Source with a null SystemId, and the
processor is using this as the base for the next call on the URIResolver.

Regards,

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

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-2011 All Rights Reserved.