This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: select all elements except root
- From: "WATKIN-JONES,ADAM (HP-UnitedKingdom,ex1)" <adam_watkin-jones at hp dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 21 Mar 2002 15:57:19 -0000
- Subject: RE: [xsl] select all elements except root
- Reply-to: xsl-list at lists dot mulberrytech dot com
I think that
<xsl:template match="*[../..]">
may work better because the outermost document element
has a parent in the XSLT tree model - the root node.
-----Original Message-----
From: Dion Houston
Well, I would think this would work:
<xsl:template match="*[..]">
This takes advantage of the fact that the root has no parent...
HTH!
Dion
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list