This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: if
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: if
- From: "Pawson, David" <DPawson at rnib dot org dot uk>
- Date: Wed, 15 Mar 2000 08:52:52 -0000
- Reply-To: xsl-list at mulberrytech dot com
>
>One of the elements within my XML document consists of a room
>number built
>up as follows:
>
><floor><section><number>
>
>For example, 6.E.19 would be on the 6th floor, in E section's
>19th room.
>
>How would the xsl:if statement be used to list, for example,
>all the rooms
>on a particular floor? For example, say I wanted a list of all
>the rooms on
>the 6th floor, how would I calculate that?
How about this, rather than an if statement.
<room>
<floor>
<section>
<number>
</room>
<xsl:apply-templates select="room[floor='6']"/>
HTH DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list