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

Re: Fwd: xsl:key() and $variables.

Subject: Re: Fwd: xsl:key() and $variables.
From: Steve <subsume@xxxxxxxxx>
Date: Tue, 25 Jul 2006 12:58:48 -0400
Re:  Fwd: xsl:key() and $variables.
On 7/22/06, M. David Peterson <m.david@xxxxxxxxxx> wrote:
How does the variable that contains Records/Record gain access to this
data?  Is it an external XML document accessed via the document

Yes, the document function().

If I were to make an educated guess, it seems in this case you are
desirous to obtain from the Records/Record/activity data-set, those
'activity' elements in which contains a text node who's string value is
equal to the string value of the text node contained between the opening
and closing activity element of the second data-set in which contains an
attribute who's name is 'neccesary' and whos value is equal to = 'yes'.

Yes, I am very desirous of this.

In other words, you want to create an index with the second data set of
only those elements in which contain a necessary attribute = 'yes'.
With the above index, you now want to parse through the first data set,
and locate elements that contain the same string value, in this case
'Writing', outputting the result of this processing.

Is this correct?


If yes, then lets make sure you are operating on data that is a proper
node-set instead of a RTF first, and move forward into understanding how
to use keys to properly group and filter your data.

Are you implying usage of the for-each loop?

Current Thread


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.
First Name
Last Name
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.