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: Node selection question - Correction


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

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