You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/12/21 13:46:45 UTC
[jira] Assigned: (SYNAPSE-489) base URI for XSLT include/import
[ https://issues.apache.org/jira/browse/SYNAPSE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned SYNAPSE-489:
---------------------------------------
Assignee: Andreas Veithen
> base URI for XSLT include/import
> --------------------------------
>
> Key: SYNAPSE-489
> URL: https://issues.apache.org/jira/browse/SYNAPSE-489
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2
> Environment: Windows XP 2002 SP2
> JDK 1.5.0_09
> Xalan 2.7.0
> Reporter: mikhailfranco
> Assignee: Andreas Veithen
> Priority: Minor
>
> I have an XSLT which includes another stylesheet,
> e.g. main.xsl has this line:
> <xsl:include href="math.xsl"/>
> and the XSLT mediator refers to the main stylesheet in the local registry:
> <localEntry key="XSL_main" src="file:///C:/foo/bar/xsl/main.xsl"/>
> ...
> <xslt key="XSL_main"/>
> When the transform runs I get these errors:
> SystemId Unknown; Line #6; Column #34; Had IO Exception with stylesheet file: math.xsl
> The included file math.xsl is in the same directory as main.xsl, and xsl:include with a relative URL should be resolved relative to the including document base URI, but obviously the XSLT processor cannot find it.
> Synapse should set the main XSLT file URI as the System ID on the JAXP XSLT processor source, so the import/includes are resolved correctly.
> Workaround is to put all the included XSLTs in the SYNAPSE_HOME directory,
> or convert all the import/includes to absolute URLs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org