xsl:strip-space element doesn't work proprely
---------------------------------------------
Key: XALANC-616
URL: http://issues.apache.org/jira/browse/XALANC-616
Project: XalanC
Type: Bug
Components: XalanC
Versions: CurrentCVS
Environment: all
Reporter: Dmitry Hayes
Fix For: CurrentCVS
for the input file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<foo>
<boo>
</boo>
</foo>
and a stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*" />
<xsl:template match="*">
<xsl:if test=" . != '' " >
<xsl:text>for a node:</xsl:text><xsl:value-of
select="name(.)"/><xsl:text>
The length is</xsl:text>
<xsl:value-of select="string-length(.)"/> <xsl:text>
</xsl:text>
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
</xsl:stylesheet>
The expected output would be :
<?xml version="1.0" encoding="utf-8"?><out/>
But XalanC gives:
<?xml version="1.0" encoding="UTF-8"?><out>for a node: foo
The length is 3
for a node: boo
The length is 1
</out>
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]