RE: [xsl] question about identity transform

Subject: RE: [xsl] question about identity transform
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 31 Oct 2006 20:42:36 -0000
> The XPath expression "node()" has a node test, but the axis 
> is omitted, so the fully expanded version of this address is 
> "child::node()".  No attributes found there.
> 

I sometimes write the axis in full - child::node() - just to make this more
clear to the reader; especially in a context like <xsl:if
test="child::node()"/>.  You could also of course write

<xsl:template match="child::node() | attribute::node()">

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

Current Thread