Re: [xsl] How to get innermost ancestor

Subject: Re: [xsl] How to get innermost ancestor
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 24 Jul 2006 06:59:42 +0100
>>>>> "J" == J S Rawat <jrawat@xxxxxxxxxxxxx> 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::*[@userlevel][1] .
-- 
Colin Adams
Preston Lancashire

Current Thread