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/11/05 22:21:44 UTC
DO NOT REPLY [Bug 4656] New: -
xsltc outputs an illegal attribute after children added
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=4656>.
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=4656
xsltc outputs an illegal attribute after children added
Summary: xsltc outputs an illegal attribute after children added
Product: XalanJ2
Version: 2.0.0
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
You cannot add an attribute to an element after children have been added.
conf test attribset19 tests that. xsltc give compile time warnings, but
still outputs one one of the illegal attributes.
Running XSLTC with Xerces Parser on attribset19
Compiler warning(s):
file:/net/bigblock/files18/tamiro/suntest/Conformance/testsuite/attribset/attribset19.xsl:
line 17: Attribute 'Att1' outside of element.
file:/net/bigblock/files18/tamiro/suntest/Conformance/testsuite/attribset/attribset19.xsl:
line 18: Attribute 'Att1' outside of element.
<?xml version="1.0" encoding="UTF-8" ?>
<Out Att1="Still-Wrong"><Element1 Att1="OK"/></Out>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: attribset19 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.3 Creating Attributes -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Verify adding an attribute to an element after children
have been added to it is an error. The attributes can be ignored.-->
<xsl:template match="doc">
<Out>
<xsl:element name="Element1">
<xsl:attribute name="Att1">OK</xsl:attribute>
</xsl:element>
<xsl:attribute name="Att1">Wrong</xsl:attribute>
<xsl:attribute name="Att1">Still-Wrong</xsl:attribute>
</Out>
</xsl:template>
</xsl:stylesheet>