This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Node selection question - Correction
- To: xsl-list at mulberrytech dot com
- Subject: Re: Node selection question - Correction
- From: "Sebastian Rahtz" <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Tue, 15 Feb 2000 22:54:34 +0000 (GMT)
- Cc: XSL-List at mulberrytech dot com
- References: <D4837A99C972D311A78D00A0C9CFE40806427D@DEVCOR_NT2>
- Reply-To: xsl-list at mulberrytech dot com
Respess, Christe writes:
>
> I just found that the statement I included in my previous message does
> not actually do what I need done. It seems to be equivalent to
> <xsl:apply-templates select="//INFO-OBJ" />. So now my question is how
> to formulate a statement such as the one below so that it will return a
> collection of all INFO-OBJ elements that are not children of INFO-OBJ
> elements?
process all INFO-OBJ elements, but add an empty template for the ones
with I-O parents
<xsl:apply-templates select=".//INFO-OBJ"/>
...
<xsl:template match="INFO=OBJ/INFO-OBJ"/>
sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list