This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL Abbreviations
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: XSL Abbreviations
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 3 Jul 2000 13:37:56 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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