Subject: RE: need to match every element node
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Sat, 7 Apr 2001 12:01:22 +0100
|
> Ho do you match every element node in one match? The
> template below process
> every element node layer after layer but I need it in done
> one sinlge match
> only
>
> <xsl:template match="/|*">
> <do-something/>
> <xsl:apply-templates/>
> </xsl:template>
You can match every element node using match="*". But I don't think that's
what you meant: you want to select every element node, which you can do
using
<xsl:apply-templates select="//*"/>
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|