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

Select value from document

Subject: Select value from document
From: geoff hopkins <geoffhopkins123@xxxxxxxxx>
Date: Thu, 2 Mar 2006 04:59:27 -0800 (PST)
document.select
I am processing a xml document to a new xml document.

But at one processing point I need to select a node
containing a specific piece of text in a completly
different position to the current position.

My first thought was keys (is there a better way).

I am currently struggling on how to use them....

this is what I have come up with so far....

def key:
<xsl:key "a" match="data[contains(.,'Name:')] use ?
"/>

using key func
<xsl:value-of select="key('a',? "/>


example of doc

<root>
<data>
Discipline or report series#10</data>
<data>SOFTWARE DESIGN REPORT
Document number#12</data>
<data>SWD 1111
Issue#13</data>
<data>13
Title#15</data>
<data>	Name: DSSALD
Authors#20</data>
<data>Summary#60</data>
<data></data>
<data></data>
<data>This process is intended to:</data>
<data></data>
<data>Generate the final high or low idle N3 select
signal to be used throughout the control laws.</data>
<data></data>
<data>Generate a flag to indicate when the engine is
above/below idle.</data>
<data></data>
<data></data>
<data></data>
</root>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.