xsl-list
[Top] [All Lists]

Re: test if null

2005-06-28 10:10:24
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(_dot_)pickaxe(_at_)gmail(_dot_)com> 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

--~------------------------------------------------------------------
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>
--~--



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