Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Select value using keys

From: "andrew welch" <andrew.j.welch@--------->
To:
Date: 3/4/2006 2:20:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent