[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Fwd: xsl:key() and $variables.
---------- Forwarded message ---------- From: Steve <subsume@xxxxxxxxx> Date: Jul 20, 2006 3:41 PM Subject: xsl:key() and $variables. To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|