Subject: Re: explicit filter
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Mon, 14 May 2001 08:21:26 -0700 (PDT)
|
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 |
- explicit filter
- Torsten Curdt - Mon, 14 May 2001 10:18:56 -0400 (EDT)
- <Possible follow-ups>
- Dan Diebolt - Mon, 14 May 2001 11:20:13 -0400 (EDT) <=
|
|