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

Lookup (?)

Subject: Lookup (?)
From: Kurt George Gjerde <kurt.gjerde@xxxxxxxxxxxxxxxxx>
Date: Mon, 18 Feb 2002 12:46:33 +0100 (MET)
halloween user lookup
Hi,

Is it possible in xslt to get hold of the content (value) of a node which
path is contained in an attribute of another node??

I have an xml file like this:

<!-- this is a quick-and-dirty xml-form thing (not xforms)
     just as an example -->

<imb>
  <form>
    <input ref="//data/user/firstname">
      <caption>First name</caption>
    </input>
    <input ref="//data/user/lastname">
      <caption>Last name</caption>
    </input>
  </form>

  <data>
    <user>
      <firstname>Jix</firstname>
      <lastname>Jacoby</lastname>
    </user>
  </data>
</imb>

Which needs to come out as something like this:

  <p>
    First name: <input name="//data/user/firstname" value="Jix"/>
  </p><p>
    Last name: <input name="//data/user/lastname" value="Jacoby"/>
  </p>

Haven't found any way of doing this. Is it possible with XSLT or by using
some Saxon extensions?


Thanks,
-Kurt.
__________
kurt george gjerde <kurt.gjerde@xxxxxxxxxxxx>
intermedia uib, university of bergen

use Perl;


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


Current Thread
  • Lookup (?)
    • Kurt George Gjerde - Mon, 18 Feb 2002 06:43:06 -0500 (EST) <=

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.