xsl-list
[Top] [All Lists]

Re: [xsl] "true" preceding axis

2011-05-29 06:46:35
On Sun, 29 May 2011 13:26:20 +0200
Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de> wrote:

Andriy Gerasika wrote:
Hi,
preceding axis does not include ancestor descendants, so I am using
//<test>[. &lt;&lt; current()]
to get "true" precedings of the node

The code works, however I am wondering if there is a better way

Why can't you use the union
   preceding::* | ancestor::*

http://nwalsh.com/docs/tutorials/xsl/xsl/foil22.html

Norm hosts Ken Holmans diagram which I find particularly clear?



-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--