xsl-list
[Top] [All Lists]

Re: [xsl] "true" preceding axis

2011-05-29 06:26:31
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/

--~------------------------------------------------------------------
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>
--~--