RE: XSL Abbreviations

Subject: RE: XSL Abbreviations
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 3 Jul 2000 13:37:56 +0100
> 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:

Current Thread