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]
Other format: [Raw text]

RE: select all elements except root


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


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