You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Julien G-B (Created) (JIRA)" <ji...@apache.org> on 2012/04/19 16:52:41 UTC
[jira] [Created] (CAMEL-5195) XSLTUriResolver fails to include from
classpath under windows
XSLTUriResolver fails to include from classpath under windows
-------------------------------------------------------------
Key: CAMEL-5195
URL: https://issues.apache.org/jira/browse/CAMEL-5195
Project: Camel
Issue Type: Bug
Components: camel-core, camel-xslt
Environment: Windows
Reporter: Julien G-B
org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5195) XSLTUriResolver fails to include
from classpath under windows
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258287#comment-13258287 ]
Claus Ibsen commented on CAMEL-5195:
------------------------------------
Can you post your xslt endpoint, and snippets from your xslt template where you use xsl:include.
Mind that if you do not specfify a scheme in xsl:include, then its interpreted as relative to the path from the xstl endpoint.
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Labels: xslt
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5195) XSLTUriResolver fails to include
from classpath under windows
Posted by "Claus Ibsen (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-5195:
----------------------------------
Assignee: Claus Ibsen
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Labels: xslt
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-5195) XSLTUriResolver fails to include
from classpath under windows
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5195.
--------------------------------
Resolution: Fixed
Thanks
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Affects Versions: 2.9.0
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Priority: Minor
> Labels: xslt
> Fix For: 2.9.3, 2.10.0
>
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5195) XSLTUriResolver fails to include from
classpath under windows
Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-5195:
-------------------------------
Priority: Minor (was: Major)
Affects Version/s: 2.9.0
Fix Version/s: 2.10.0
2.9.3
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Affects Versions: 2.9.0
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Priority: Minor
> Labels: xslt
> Fix For: 2.9.3, 2.10.0
>
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5195) XSLTUriResolver fails to include
from classpath under windows
Posted by "Julien G-B (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258309#comment-13258309 ]
Julien G-B commented on CAMEL-5195:
-----------------------------------
Thanks for the patch, it fixes the problem.
In case you still need the info, the endpoint:
{code:xml}
<to uri="xslt:xslt/transform.xsl" />
{code}
the include:
{code:xml}
<xsl:stylesheet [...]>
<xsl:include href="included.xsl" />
[...]
{code}
Both transform.xsl and included.xsl are in the "/xslt" path of an OSGi bundle deployed to Fuse ESB/Apache Servicemix.
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Affects Versions: 2.9.0
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Priority: Minor
> Labels: xslt
> Fix For: 2.9.3, 2.10.0
>
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5195) XSLTUriResolver fails to include
from classpath under windows
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258292#comment-13258292 ]
Claus Ibsen commented on CAMEL-5195:
------------------------------------
I have committed a fix on trunk and 2.9 branch. You are welcome to give the SNAPSHOT a try on your system.
> XSLTUriResolver fails to include from classpath under windows
> -------------------------------------------------------------
>
> Key: CAMEL-5195
> URL: https://issues.apache.org/jira/browse/CAMEL-5195
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-xslt
> Affects Versions: 2.9.0
> Environment: Windows
> Reporter: Julien G-B
> Assignee: Claus Ibsen
> Priority: Minor
> Labels: xslt
> Fix For: 2.9.3, 2.10.0
>
>
> org.apache.camel.builder.xml.XsltUriResolver uses File.separator to separate classpath parts instead of simply '/'. This prevents <xsl:include /> to work under windows when the including xslt is located in a subfolder of the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira