This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: need to match every element node
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] need to match every element node
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sat, 7 Apr 2001 12:01:22 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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