synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Assigned: (SYNAPSE-489) base URI for XSLT include/import
Date Sun, 21 Dec 2008 12:46:45 GMT


Andreas Veithen reassigned SYNAPSE-489:

    Assignee: Andreas Veithen

> base URI for XSLT include/import
> --------------------------------
>                 Key: SYNAPSE-489
>                 URL:
>             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:
For additional commands, e-mail:

View raw message