This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: need to match every element node


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]