xsl-list
[Top] [All Lists]

Re: [xsl] How to get innermost ancestor

2006-07-23 22:59:30
"J" == J S Rawat <jrawat(_at_)techbooks(_dot_)com> writes:

    J> Could anyone please let me know that how could I get the
    J> innermost ancestor of "imagedata" by xslt. If I want most inner
    J> ancestor of <imagedata fileref="abc.tif"/> having attribute
    J> "userlevel" than it should return "<sec2 userlevel="4.1.2.1">
    J> not "<chapter userlevel="3.1.2">.

I think you are asking for ancestor::*[(_at_)userlevel][1] .
-- 
Colin Adams
Preston Lancashire

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

<Prev in Thread] Current Thread [Next in Thread>