This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL to generate XPaths
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] XSL to generate XPaths
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Thu, 17 May 2001 15:40:03 +0200 (MET DST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list