PQ74608: WSAS 4.03 XALAN processor package produces non-well formed XML.

 A fix is available

PQ74608, 4.0.3: XALAN processor package produces non-well formed XML



APAR status
Closed as program error.

Error description
The Xalan processor package with WebSphere 4.0.5/4.0.6 (Xalan
2.2.3) produces non-well-formed XML.
Customer testcase included CopyXML.xsl as both the xml input
and the stylesheet for translation.
Command to produce error:  java org.apache.xalan.xslt.Process
-in CopyXML.xsl -xsl CopyXML.xsl
This produce non-well formed XML:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0" ="">
  <xsl:template match="/">
     <xsl:copy-of select="."/>
  </xsl:template>
</xsl:stylesheet>
Local fix
The desired output was:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0"
xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform.xsd">
  <xsl:template match="/">
     <xsl:copy-of select="."/>
  </xsl:template>
</xsl:stylesheet>
LOCAL FIX:
none
Problem summary
****************************************************************
* USERS AFFECTED: All users of xalan.jar supplied with         *
*                 WebSphere Application Server release 4.0.3   *
*                 and later versions.                          *
****************************************************************
* PROBLEM DESCRIPTION: WebSphere 4.0.3 XALAN processor package *
*                      produces non-well formed XML.           *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Below is a small example showing non-well formed output:
Contents of file CopyXML.xsl :
*************************************************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform.xsd">
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
************************************************************

java org.apache.xalan.xslt.Process -in CopyXML.xsl -xsl
   CopyXML.xsl produces following non-well formed output:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 version="1.0" ="">
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
Problem conclusion
This is a bug in xalan.jar (LotusXSL) product and is fixed in
xalan.jar version 2.3.4 .
Temporary fix
PQ74608_eFix.jar
Comments
APAR information
APAR number PQ74608
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-05-27
Closed date 2003-06-09
Last modified date 2003-06-09

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
XALAN          

SRLS

Fix information

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ74608
IBM Group: Software Group
Modified date: Jun 9, 2003