xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor