xsl-list
[Top] [All Lists]

RE: [xsl] URIResover question

2009-08-25 06:06:31
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 



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>