Subject: Re: [xsl] XSL to generate XPaths From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 17 May 2001 15:40:03 +0200 (MET DST) |
> Here I needed to check if the current node is an element: > > count(.|../*)=count(../*) and count(../*[name()=name(current())]) > 1" Perhaps self::* in the first place is more efficient? (self::* selects element nodes only) Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL to generate XPaths, Jeni Tennison | Thread | RE: [xsl] contains()???, Diamond, Jason |
Re: [xsl] Associating namespace pre, Oliver Becker | Date | Re: [xsl] Variables, Jeni Tennison |
Month |