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

Re: explicit filter

Subject: Re: explicit filter
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Mon, 14 May 2001 08:21:26 -0700 (PDT)
yahoo explicit filtering
Here is how I would address your problem. Set up two variables for
the cantidate elements and the filtered elements:

  <xsl:variable name="elements" select="..some statement.."/>
  <xsl:variable name="filtered_elements" select="/.."/>

Note $filtered_elements is empty (there is no parent of the root node).

Now recurse over $elements calling a named template (with paramaters) 
and when a element is found that matches your filter criteria, add it 
to the template parameter using a union operator (ie |):

<xsl:with-param name="filtered_elements" select="$filter_elements|$new"/>

Regards,

Dan




__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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.