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

Re: extract the right elements

Subject: Re: extract the right elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 30 Sep 2003 13:34:01 +0100
right elements

> <xsl:for-each select="//INSTANCE[@class='Audio' or @class='Web-Site']">
This loops over the nodes that you want but then having got there you do this:  

>   <xsl:for-each select="key('tracker','Position')">

which selects all the nodes  using the constant key 'Position' so it
does not depend in any way on the INSTANCE node and so the inner loop
will produce identical <item> elements one for each of the originally
selected  INSTANCE[@class='Audio' or @class='Web-Site' elements.

insde this for-each the current node is whatever node is returned by
your key, so your INSTANCE elements are not used at all.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
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-2013 All Rights Reserved.