[XML-SIG] [ pyxml-Bugs-411350 ] 4XSLT xsl:attribute name not required

noreply@sourceforge.net noreply@sourceforge.net
Mon, 26 Mar 2001 04:37:47 -0800


Bugs item #411350, was updated on 2001-03-26 04:37
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=411350&group_id=6473

Category: 4Suite
Group: None
Status: Open
Priority: 5
Submitted By: Alexandre Fayolle (afayolle)
Assigned to: Nobody/Anonymous (nobody)
Summary: 4XSLT xsl:attribute name not required

Initial Comment:
Version used : 4Suite 0.10.2

Using <xsl:attribute without a name attribute is
accepted by 4XSLT, whereas name is required by the spec
(XSLT 1.0 §7.1.3)

Sample code

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'>

<xsl:template match="/*">
<foo><xsl:attribute>banzai</xsl:attribute></foo>
</xsl:template>
</xsl:transform>

When applied to any well formed document with 4XSLT,
the following output is given:

<?xml version='1.0' encoding='UTF-8'?>
<foo ='banzai'/>

4XSLT should raise an exception.


Cheers,

Alexandre 'back from the UK' Fayolle

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=411350&group_id=6473