Hi,
Is there a way in XSLT to loop through the ancestors until I find the
first instance of a node called "foo"?

For context what I'm trying to do is see if a "bookmark" is in the same
"section" as the link/@href (and to find this out when I'm processing
the link).

Grant Focas

******
Example XML:
<?xml version="1.0" encoding="utf-8"?>
<content >
        <title>Inline links across sections</title>
        <section>
                <title>Heading 1<title>
                <paragraph>Here is a <link href="#myPopupBookmark"
type="internal"><paragraph>link</paragraph></link> to a in the popup
below</paragraph>
                <paragraph>Here is a <link
href="#myNestedSectionBookmark"
type="internal"><paragraph>link</paragraph></link> to a bookmark in a
nested section</paragraph>
                <section>
                        <title>My popup section<title>
                        <heading level="1">My Heading 1<heading>
                        <paragraph>bookmark id="myPopupBookmark"/>This
is the line with a bookmark</paragraph>
                </section>
        </section>
        <section>
                <title>Inline Link across nested sections</title>
                <section visible="true" display="popup">
                        <title>My popup section<title>
                        <heading level="1">Heading 1 in Popup</heading>
                        <section visible="true" display="newWindow">
                                <title>A new window in a popup</title>
                                <heading level="1">Heading 1 in my new
window</heading>
                                <paragraph>Here is a line with a book
mark on it<bookmark id="myNestedSectionBookmark"/></paragraph>
                        </section>
                </section>
        </section>
</content>
**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to