This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: if


>
>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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]