xsl-list
[Top] [All Lists]

Not Node() but string onlye

2005-01-07 21:57:22
Hello,

I am using this:
<xsl:when test="not(node()) and string(.)">

To test if a node has "No Child Nodes" but contains "String only".
So example:

<!-- This should FAIL above test -->
<mynode>
    I hope
</mynode>

<!-- This should FAIL above test -->
<mynode>
    <wishing>
        I wish
    </wishing>
</mynode>

Thanks for your suggestions!
Karl

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