Re: [xsl] XSL to generate XPaths

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())]) &gt; 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