[ http://issues.apache.org/jira/browse/XALANJ-2059?page=all ]

Brian Minchau updated XALANJ-2059:
----------------------------------

    Fix Version: 2.7
                     (was: CurrentCVS)

> 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: 2.7
>  Attachments: XalanJ2059_GoodPatch.txt, 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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to