Subject: Newbie Question: Filtering Elements out of a Collection
From: "Jeremy E. Denton" <jdenton@xxxxxxxxxxxxx>
Date: Tue, 22 Jan 2002 11:27:29 -0800
|
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
|