This is the mail archive of the xsl-list@mulberrytech.com mailing list .

RE: The XSL-List Digest V2 #510


HjÂ:towner-xsl-lisay, February 16, 2000 4:21 AM To: xsl-list-digest@mulberrytech.cubject: The XSL-List Digest V2 #510 Respess, Christe writes: > > I just found that the statement I included in my ious message does > not actually do what I need done. It seems to be equivalent to > <xsl:apply-templates selectINFO-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 adHjÂ: ety template -templates select=".//INFO-OBJ"/> ... <xsl:template matchFO=OBJ/INFO-OBJ"/> sebastian XSL-List info and archive: http://mulberrytech.com/xsl/xsl-list ------------------------------ Date: Wed, 16 Feb 2000 09:45:05 -0000 From: Kay Michael &HjÂ:icel.Kay@icl.c The context() function is not defined in XSLT so I guess you aring the old Microsoft so-called-XSL? IF SO, PLEASE SAY SO! Assuming you want an XSLT solution the answer is <xsl:apply-lates select="//INFO-OBJ[not(parent::INFO-OBJ)]" /> or perhaps more efficiently: <xsl:apply-templates select="/dedant::*[not(self::INFO-OBJ)]/INFO-OBJ" /> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Index Nav: [Date Index] href="subjects.html#00480">Subject Index] [Author Index] [Thread Index]
Message Nav: [Thread Prev] [Thread Next]