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=5576>.
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=5576

XSLTC does not return all nodes for expression "//*/@*"





------- Additional Comments From [EMAIL PROTECTED]  2002-01-16 15:31 -------
Yes, there's a somewhat similar bug reported, #3313 but it isn't the same one
here I think.

Here's a more compact test case using 2.2.0:

--- The XSL ---
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
  <xsl:output encoding="utf-8"/>
  <xsl:template match="/">
    <num-attributes><xsl:value-of select="count(//*/@*)"/></num-attributes>
  </xsl:template>
</xsl:stylesheet>

--- The XML ---
<?xml version="1.0"?>
<root-elem attrib1="foo" attrib2="bar">
 <child1 attrib3="foo" attrib4="bar">
  <child2 attrib5="foo"/>
 </child1>
 <child3 attrib6="baz"/>
</root-elem>

--- Output of XSLTC from Xalan 2.2.0 ---
<?xml version="1.0" encoding="utf-8" ?>
<num-attributes>4</num-attributes>

--- Output of Xalan 2.2.0 ---
<?xml version="1.0" encoding="utf-8"?>
<num-attributes>6</num-attributes>

--- Output of Saxon 6.5 ---
<?xml version="1.0" encoding="utf-8"?><num-attributes>6</num-attributes>

Adding or removing attributes to <root-elem> affects the output <num-attributes>
with Xalan and Saxon, but not with XSLTC.

Reply via email to