[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: test if null

Subject: Re: test if null
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Mon, 27 Jun 2005 20:43:57 -0700 (PDT)
xsl if null
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@xxxxxxxxx> 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@xxxxxxxxx>
> wrote:
> > I would do <xsl:if test="not(EMPTYNODE/node())"> ,
> or
> > as David has written ..
> > 
> > Regards,
> > Mukul
> > 
> > --- -= jay =- <deepsweech@xxxxxxxxx> 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::-*
> > >
> > >
> > 
> > 
> > 
> > 
> >
> ____________________________________________________
> > Yahoo! Sports
> > Rekindle the Rivalries. Sign up for Fantasy
> Football
> > http://football.fantasysports.yahoo.com
> > 
> > 
> 
> 
> -- 
> *-::jay::-*
> 
> 



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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.