Re: [xsl] test if null

Subject: Re: [xsl] test if null
From: -= jay =- <deepsweech@xxxxxxxxx>
Date: Wed, 29 Jun 2005 01:10:24 +0800
Hi Ragulf,
The node is always present, but im checking if it returns empty string or not
like:
<sample /> -->this is empty
<sample>not empty</sample>  ->not empty

thanks guys!

On 6/28/05, Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx> wrote:
> Hi,
>
> I thought that select="*" did not process text() elements...?
> Am I wrong in this?
>
> If I am right, then this test would not be enough to check whether it
> is an empty element, but Jay will have to test on node instead, that
> is <xsl:if test="node()">...
> (Or perhaps more <xsl:if test="*|text()">...)
>
> Regards,
> Ragulf Pickaxe :-)
>
> > >
> > >   3. <xsl:if test="not(count(*) = 0)"/>
> > That is equivalent to
> > <xsl:if test="*"/>
> >
> > David
>
>


--
*-::jay::-*

Current Thread