xsl-list
[Top] [All Lists]

[xsl] Fwd: xsl:key() and $variables.

2006-07-21 15:42:47
---------- Forwarded message ----------
From: Steve <subsume(_at_)gmail(_dot_)com>
Date: Jul 20, 2006 3:41 PM
Subject: xsl:key() and $variables.
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


I have a variable containing

<Records>
  <Record>
     <activity>Baseball</
     <hours>36</
  <Record>
     <activity>Shopping</
     <hours>39</
  <Record>
     <activity>Writing</
     <hours>3</
   ......etc  (yes, I know they're not closed.)

and some xml (document('../blah.xml') containing...

<activities>
   <activity neccesary="no">Baseball</
   <activity neccesary="no">Shopping</
   <activity neccesary="yes">Writing</

..............

How do I  <xsl:apply-templates select="$variable/Records/Record[1]" />
only those records which are neccesary="yes"  ?

I swear one of these posts I'll have xsl:key figured out.

-Steve

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--