[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XPaths made up of values of nodes specified by other XPaths

Subject: XPaths made up of values of nodes specified by other XPaths
From: "James Tauber" <jtauber@xxxxxxxxxxx>
Date: Mon, 1 Nov 1999 15:45:58 -0500
specified xpaths
Has anyone come up with a way of using an XPath, part of which is found by
taking the value of a node specified by another XPath? In particular, using
an extension function rather than variable assignment.

Say I have the following document:

<A>
    <B C="E/F"/>
    <D>
        <E>
            <F>JACKPOT!</F>
        </E>
    </D>
</A>

and I want to reference the F as /A/D/[whatever the value of /A/B/@C is]

I'd like to be able to do something like:

    /A/D/foo("/A/B/@C")

Is such an extension function feasible?

James


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.