synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mikhailfranco (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-489) base URI for XSLT include/import
Date Fri, 19 Dec 2008 07:53:44 GMT
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
            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


Mime
View raw message