xsl-list
[Top] [All Lists]

Re: test if null

2005-06-28 01:03:48
hi i already solved it. i passed the value of <EMPTYNODE> into a
variable then used java to proccess the logic =)

though i tried analyzing the <EMPTYNODE /> through java. i passed it
through variabale, performed length() on it. it returned "4", does it
means it contains whitespaces? thanks

On 6/28/05, Ragulf Pickaxe <ragulf(_dot_)pickaxe(_at_)gmail(_dot_)com> wrote:
Hi Jay,

I don't understand what you mean that it is not working.
The answer: <xsl:when test="EMPTYNODE[not(node())]"> that DC made -
and other various solutions in this thread - should have worked.

If you cannot make this work, what kind of error does it give. If it
gives no output at all, are you sure you are in the right scope?
Saying "it is not working" does not give us much to work on. The
solutions given should work.

As always, a small sample XML and stylesheet that clearly shows the
problem at hand would help us helping you.

Regards,
Ragulf Pickaxe :-)

On 6/28/05, -= 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

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