You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/22 14:51:57 UTC
DO NOT REPLY [Bug 4331] New: -
xsltc doesn't do copy-of select="@*" on xml:lang correctly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4331>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4331
xsltc doesn't do copy-of select="@*" on xml:lang correctly
Summary: xsltc doesn't do copy-of select="@*" on xml:lang
correctly
Product: XalanJ2
Version: 2.0.1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tom.amiro@sun.com
The following was reported by Toni Penttinen
toni.penttinen@tassen.fi
A following small test case shows how xml:lang is produced wrongly to the
output.
xml:file
<?xml version="1.0" encoding="UTF-8"?>
<doc id="1" class="mobile" xml:lang="en" >
<text>Sample text</text>
</doc>
xsl:file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="doc">
<document>
<xsl:copy-of select="@*" />
</document>
</xsl:template>
</xsl:stylesheet>
and wrongly produced output
<?xml version="1.0" encoding="UTF-8" ?>
<document id="1" class="mobile" xml:ml:@lang="en"/>
regards,
Toni