Subject: RE: The XSL-List Digest V2 #510 From: "Respess, Christe" <crespess@xxxxxxxxxx> Date: Wed, 16 Feb 2000 11:00:43 -0800 |
The template that is being applied to the INFO-OBJ nodes is recursive, because I do need to process all the INFO-OBJ nodes but I need to do it in a certain order. So I want to apply the template initially only to the INFO-OBJ nodes that are not children of other INFO-OBJ nodes. Unfortunately, the empty template for children nodes won't work for this particular situation. I am restricted on this project, for now at least, to using the "old Microsoft XSL", sorry I did not specify previously. I am not very well versed in the world of XSL/XSLT yet. Is there a way to accomplish this using plain old XSL? Thanks again, Christe -----Original Message----- From: owner-xsl-list-digest@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list-digest@xxxxxxxxxxxxxxxx] Sent: Wednesday, February 16, 2000 4:21 AM To: xsl-list-digest@xxxxxxxxxxxxxxxx Subject: The XSL-List Digest V2 #510 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 ------------------------------ Date: Wed, 16 Feb 2000 09:45:05 -0000 From: Kay Michael <Michael.Kay@xxxxxxx> Subject: RE: Node selection question The context() function is not defined in XSLT so I guess you are using the old Microsoft so-called-XSL? IF SO, PLEASE SAY SO! Assuming you want an XSLT solution the answer is <xsl:apply-templates select="//INFO-OBJ[not(parent::INFO-OBJ)]" /> or perhaps more efficiently: <xsl:apply-templates select="/descendant::*[not(self::INFO-OBJ)]/INFO-OBJ" /> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: How To Include external XSL fil, Igor Nakshin | Thread | xsl:call-template question, Joni Fazo |
Re: ** security problem and link, Rick Geimer | Date | Re: Which one to choose, Soumitra Sengupta, P |
Month |