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

dynamic xpath question

Subject: dynamic xpath question
From: Duane Gran <duane.gran@xxxxxxxxx>
Date: Sat, 31 Dec 2005 23:24:22 -0500
form xpath
I'm using XUpdate in an application where the XPath to the node I'm modifying is stored in the document. For example, my document fragment looks like the following:

<form>
    <xpath>/mods/titleInfo/subTitle</xpath>
    <document>
        <mods>
            <titleInfo>
                <title>Sound and fury</title>
                <subTitle>my sub title</subTitle>
            </titleInfo>
         </mods>
    </document>
</form>

I'm trying to create an XUpdate variable which uses the data found in /form/xpath. I'm trying the following without success:

<xu:variable name="path-to-node" select="/form/xpath"/>
<xu:variable name="sub" select="concat('/form/document', $path-to- node)"/>


Any advice on this would be most appreciated. Thank you.

Duane Gran

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.