Re: [xsl] "true" preceding axis

Subject: Re: [xsl] "true" preceding axis
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sun, 29 May 2011 13:26:20 +0200
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::* ?

--

	Martin Honnen --- MVP Data Platform Development
	http://msmvps.com/blogs/martin_honnen/

Current Thread