Subject: [xsl] explicit filter From: Torsten Curdt <tcurdt@xxxxxx> Date: Mon, 14 May 2001 16:21:43 +0200 (CEST) |
I have a variable containing a node set: <xsl:variable name="elements" select="..some statement.."/> I can now filter these nodes via filter (no way ;) <xsl:variable name="filtered_elements" select="$elements[filter]"/> Unfortunately I need to filter the node set on something much more comlex. So I thouhght I could traverse the nodes, test them and return the good ones. Unfortunately this doesn't seem to work... So I tried a simple node set copy first. But this didn't work either: Here is what I came up with: <xsl:variable name="filtered_elements"> <xsl:for-each select="$elements"> <xsl:value-of select="."/> </xsl:for-each> </xsl:variable> or <xsl:variable name="filtered_elements"> <xsl:for-each select="$elements"> <xsl:copy><xsl:copy-of select="@*"/></xsl:copy> </xsl:for-each> </xsl:variable> If anyone did understand what I am talking about... ...any comment is appreciated ;) -- Torsten XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: <xsl:output doctype-s, Dan Diebolt | Thread | Re: [xsl] explicit filter, Jeni Tennison |
Re: [xsl] Re: <xsl:output doctype-s, Stephane . Le-Deaut | Date | RE: [xsl] xmlspy and copy-of, RSuiter |
Month |