You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2004/11/29 22:58:29 UTC

[jira] Commented: (XALANJ-2000) xsl:include with relative href cause MalformedURL on unicode path

     [ http://nagoya.apache.org/jira/browse/XALANJ-2000?page=comments#action_55995 ]
     
Henry Zongaro commented on XALANJ-2000:
---------------------------------------

The same MalformedURIException is produced if the URI is an absolute URI that contains characters that are not permitted in a URI.

I believe this should be considered an enhancement request.  Is there any reason why the base URI can't be corrected by the application so that it is a valid URI?

> 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
>  Attachments: SystemIDResolver.diff
>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org