You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Yash Talwar (JIRA)" <xa...@xml.apache.org> on 2005/02/15 20:32:46 UTC
[jira] Updated: (XALANJ-2059) Transformation fails when an href attribute of xsl:include has jar scheme in url.
[ http://issues.apache.org/jira/browse/XALANJ-2059?page=history ]
Yash Talwar updated XALANJ-2059:
--------------------------------
Attachment: XalanJ2059_Patch.txt
I have reproduced this problem. I am attaching a patch to resolve this issue.
> Transformation fails when an href attribute of xsl:include has jar scheme in url.
> ---------------------------------------------------------------------------------
>
> Key: XALANJ-2059
> URL: http://issues.apache.org/jira/browse/XALANJ-2059
> Project: XalanJ2
> Type: Bug
> Components: Xalan-interpretive
> Versions: CurrentCVS
> Environment: Windows 2000
> Reporter: Yash Talwar
> Assignee: Yash Talwar
> Fix For: CurrentCVS
> Attachments: XalanJ2059_Patch.txt
>
> The error occurs when I use a jar scheme in for href attribute in xsl:include element.
> A.xsl
> -------
> <?xml version="1.0"?>
> <xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> <xsl:include href="jar:file:D:/test.jar!/B.xsl"/>
> <xsl:template match="/*">
> <xsl:apply-imports/>
> </xsl:template>
> </xsl:stylesheet>
> --------
> B.xsl
> --------
> <?xml version="1.0"?>
> <xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> <xsl:template match="*">
> <Counting>
> <xsl:value-of select="name()"/>
> </Counting>
> </xsl:template>
> </xsl:stylesheet>
> --------
> Input.xml
> --------
> <?xml version="1.0"?>
> <count>
> <ONE/>
> <TWO/>
> <THREE/>
> </count>
> --------
> I create test.jar file that include B.xsl file.
> If I run Xalan as follows:
> java org.apache.xalan.xslt.Process -In input.xml -XSL A.xsl
> The following exception occurs:
> file:///d:/working/workspaces/XalanBugFixDevPlus/xml-xalan/A.xsl; Line #3; Column #52; XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: jar:file:D:/test.jar!/B.xsl
> java.lang.RuntimeException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: jar:file:D:/test.jar!/B.xsl
> at org.apache.xalan.xslt.Process.doExit(Process.java:1099)
> at org.apache.xalan.xslt.Process.main(Process.java:1072)
> Exception in thread "main"
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org