Re: Test for the existence of attribute

Subject: Re: Test for the existence of attribute
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Fri, 07 May 1999 12:36:04 -0400
use <xsl:if test=".[@version='']">

--Keith

Sharmila Pandith wrote:
> 
> Hi,
> 
>         I have the following:
>                 <base version=""></base>
> 
>         To check if the attribute is present I do the following:
>         <xsl:if test=".[(@version)]">
> 
>         How do I test if the attribute is empty. For ex: in the example above, the
> attribute version is empty.
> 
> TIA,
> Sharmila Pandith
> Zedak Corp
> 400 Columbus Ave
> Valhalla, NY 10595
> sharmila@xxxxxxxxx
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread