This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Newbie Question: Filtering Elements out of a Collection
- From: "Jeremy E. Denton" <jdenton at galdosinc dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 22 Jan 2002 11:27:29 -0800
- Subject: [xsl] Newbie Question: Filtering Elements out of a Collection
- Reply-to: xsl-list at lists dot mulberrytech dot com
I apologise in advance if this is in a list FAQ.
I have this rather simple xml file that contains the following:
<shapeCollection>
<shapeSet id="ID01">
<square/>
<rectangle/>
<ellipse/>
</shapeSet>
<shapeSet id="ID02">
<circle/>
<square/>
</shapeSet>
<shapeSet id="ID03">
<circle/>
<ellipse/>
</shapeSet>
<shapeSet id="ID04">
<circle/>
<octagon/>
</shapeSet>
</shapeCollection>
Where there is an arbirary number of shapeSets. How would I generate a
collection of shape sets that didn't contain any shape set that had an
ellipse in it? I would think this is a rather simple xslt script but I admit
that I'm so new at this that the idea of it is elluding me.
Jeremy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list