[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] node exist?


Subject: Re: [xsl] node exist?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 Oct 2001 14:57:30 +0100

 
   hi:
   how to know if a node exist for conditional procesing?
   something like:
   <xsl:if test="node-exist(name-of-the-node)">
       do whatever
   </xsl:if>


It's easier than you think:


  <xsl:if test="name-of-the-node">
       do whatever
   </xsl:if>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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



Current Thread