xsl-list
[Top] [All Lists]

Re: test if null

2005-06-27 20:43:57
Do you want to check for a particular value? For this,
you may do 

<xsl:template match="EMPTYNODE">
  <xsl:if test=". = n">
    <!-- do some thing -->
  </xsl:if>
</xsl:template>

Regards,
Mukul

--- -= jay =- <deepsweech(_at_)gmail(_dot_)com> wrote:

i tried this one and still its not working.

my node would be either
<EMPTYNODE /> if empty 
and 
<EMPTYNODE>XXXXXX</EMPTYNODE> if not empty

now im checking if there is a value or not.
thanks

On 6/27/05, Mukul Gandhi <mukul_gandhi(_at_)yahoo(_dot_)com>
wrote:
I would do <xsl:if test="not(EMPTYNODE/node())"> ,
or
as David has written ..

Regards,
Mukul

--- -= jay =- <deepsweech(_at_)gmail(_dot_)com> wrote:

Hi guys,

How would i test if a node is null?
like i have this empty node <EMPTYNODE />
<xsl:when test="EMPTYNODE[.!= '']">

is not working.

--
*-::jay::-*




--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:

<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--







____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy
Football
http://football.fantasysports.yahoo.com



--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
*-::jay::-*


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





                
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>