Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2084

ISO-8859-1 Encoding exception processing stylesheet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.6
    • 2.7
    • transformation
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • jdk 1.5, windows xp sp2

    Description

      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.

      Attachments

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: