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

Re: Select value using keys

Subject: Re: Select value using keys
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Sat, 4 Mar 2006 14:19:16 +0000
select value and name
On 3/4/06, geoff hopkins <geoffhopkins123@xxxxxxxxx> wrote:
>
> ...
> <data>text</data>
> <data>Name: DOC_ID1</data>
> <data>text</data>
> ....
>
> could someone show me how to select the node
> containing 'Name:' using a key and then the correct
> synatx for displaying in <xsl: value-of select = "...
>

Geoff you are struggling here because keys are the wrong choice for
this (I'm sure you've asked this before).

A key returns nodes based on a value - what value do you think you
could to pass to your key to return that node?

Just use xpath:

<xsl:value-of select="data[contains(., 'Name:')]"/>

If you explain the problem you might find we squeeze a key in there
somewhere.....

cheers
andrew

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.