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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSL Abbreviations


> I have a really quick question.  What is the abbreviated 
> equivalent of:
> 
> ../descendant-or-self::node()[generate-id(.) = $node]

There is no syntactic abbreviation of this.
> 
> The XPath docs say that '//' is equivalent to 
> 'descendant-or-self::node()',

No, it's equivalent to  '/descendant-or-self::node()/'
in other words it can't be used if there are predicates
> 
> What do I use to replace 
> the '*', as I don't want to select the children of '..'s 
> descendants, I want the descendants themselves.  '.' doesn't work.
> 
Sorry, you're not explaining yourself clearly.

Mike K


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]