RE: [xsl] count following-sibling node()

Subject: RE: [xsl] count following-sibling node()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 16 Nov 2008 00:00:30 -0000
>   Attributes are nodes, but node() doesn't match attribute nodes.
> 

You need to be careful here. As a NodeTest, node() does match attribute
nodes. But as an AxisStep, it doesn't, because it's then short for
child::node(), and there are no attributes on the child axis. If you use the
attribute axis, then attribute::node() will indeed match all attributes.

Michael Kay
http://www.saxonica.com/

Current Thread