xsl:include with relative href cause MalformedURL on unicode path
-----------------------------------------------------------------

         Key: XALANJ-2000
         URL: http://nagoya.apache.org/jira/browse/XALANJ-2000
     Project: XalanJ2
        Type: Bug
    Versions: 2.6    
 Environment: Windows XP
    Reporter: Tomas Kulhanek


xsl:include with relative href cause MalformedURL on unicode path.

If the stylesheet contains <xsl:include> with relative reference and this 
reference is based on path with unicode characters the following is thrown when 
trying to tranform something by xalan command line:

(Location of error unknown)XSLT Error 
(javax.xml.transform.TransformerConfigurationException): 
javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: 
org.apache.xml.utils.URI$MalformedURIException: Path contains invalid 
character: &#9532;� 

Our application throws following stack trace:
org.apache.xml.utils.URI$MalformedURIException: Path contains invalid character:
&#9532;� 
        at org.apache.xml.utils.URI.initializePath(URI.java:799)
        at org.apache.xml.utils.URI.initialize(URI.java:473)
        at org.apache.xml.utils.URI.<init>(URI.java:231)
        at org.apache.xml.utils.URI.<init>(URI.java:214)
        at org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(SystemIDResolver
.java:251)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInc
lude.java:173)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetH
andler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:487)

Looking deeper into the code the consequences (not the reason!) could be 
repaired by transforming URI unicode characters to %XX form.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to