RE: [xsl] if statement

Subject: RE: [xsl] if statement
From: David Neary <David@xxxxxxxxx>
Date: Wed, 2 Jul 2003 17:20:40 +0200
Hello Martin,

> How can I test if my current node has a attribute named 'wrap' and if 
> it has the value 'yes' I would have to add some things with 
> <xml:text> 
> if 'wrap' does not exist or it is 'no', I don't want to add 
> this things.

<xsl:if test="@wrap='yes'">
  <add_stuff/>
</xsl:if>

Cheers,
Dave.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread