[
http://issues.apache.org/jira/browse/XALANJ-2297?page=comments#action_12383320
]
Brian Minchau commented on XALANJ-2297:
---------------------------------------
The testcase has three stylesheet modules:
path1/sheet1.xsl
path1/path2/sheet2.xsl
path1/path2/path3/sheet3.xsl
sheet1.xsl has:
<xsl:import href="path2/sheet2.xsl"/>
sheet2.xsl has:
<xsl:import href="path3/sheet3.xsl"/>
With your own URI resolver set, to resolve path2/sheet2.xsl
the URI resolver gets called with an href of
path2/sheet2.xsl and base of the primary stylesheet (OK).
Then from within sheet2.xsl the resolver gets called again to resolve
path3/sheet3.xsl,
with an href of path2/sheet2.xsl and base of the primary stylesheet (WRONG).
The base uri
at this point should be the absolute URI of sheet2.xsl, not the absolute URI of
the primary sheet1.xsl
Then the
> URIResolver passed wrong base URI for nested include/import
> -----------------------------------------------------------
>
> Key: XALANJ-2297
> URL: http://issues.apache.org/jira/browse/XALANJ-2297
> Project: XalanJ2
> Type: Bug
> Components: parse-or-compile
> Versions: Latest Development Code
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: patch.txt
>
> When a user's URI resolver is called the base URI it is given is always the
> base uri of the primary document. If an included or imported stylesheet
> itself include another stylesheet then at this point the base is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]