You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/04/01 19:16:19 UTC

[jira] Commented: (XALANJ-2084) ISO-8859-1 Encoding exception processing stylesheet

     [ http://issues.apache.org/jira/browse/XALANJ-2084?page=comments#action_61968 ]
     
Brian Minchau commented on XALANJ-2084:
---------------------------------------

Current behavior is a rather serious exception when the character being written out by the serializer is not a valid charcter in the stated output encoding.

Should Xalan be kinder and gentler and produce output, though perhaps wrong output, and just give a warning?  

The serialized output might have this xml header:
<?xml encoding="ISO-8859-1"?>
but yet it would break that promise and contain characters not in that encoding.

I'm thinking about this in a web server environment. Such a warning might be produced multiple times per transformation, and such warnings could really pile up in the servers log. On the other hand, the exceptions probably pile up in the log as-is.

Anyone have an opinion on reducing to a warning?


> ISO-8859-1 Encoding exception processing stylesheet
> ---------------------------------------------------
>
>          Key: XALANJ-2084
>          URL: http://issues.apache.org/jira/browse/XALANJ-2084
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation
>     Versions: 2.6
>  Environment: jdk 1.5, windows xp sp2
>     Reporter: Graeme Rocher
>     Priority: Critical

>
> I am getting the following exception when attempting to process an XML file with Xalan 2.6 called from Ant. I have tested this outside Ant using jEdits XSLT transformation engine and it produces the same result:
>      [xslt] Loading stylesheet C:\projects\aclient\build\work\templates\stylesheets\main.xsl
>      [xslt] : Fatal Error! org.xml.sax.SAXException: Attempt to output character of integral value 8230 that is not represented in specified output encoding of ISO-8859-1. Cause: org.xml.sax.SAXExcept
> ion: Attempt to output character of integral value 8230 that is not represented in specified output encoding of ISO-8859-1.
>      [xslt] Failed to process C:\projects\aclient\src\content\page.xml
> This seems similar to a problem reported in bug 1799 (http://issues.apache.org/jira/browse/XALANJ-1799) although in this case upgrading to 2.6 solved the problem and I am already running 2.6.
> Character 8230 of the ISO-8859-1 character set is the elipse (...), so why the error is being thrown is beyond me
> I downgraded to Xalan 2.5.3 and this solved the problem, but thought I would raise awareness of this issue regardless.

-- 
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