Checking if a tag exists [message #6540] |
Fri, 23 March 2007 16:24 |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Is it possible to check whether a tag exists in the file ?
something like
<c:when exists $node/@name>
.. . . blah blah
</when>
|
|
|
Re: Checking if a tag exists [message #6581 is a reply to message #6540] |
Sun, 25 March 2007 05:45 |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Ok after a few days !!!
I came up with this:-
<c:setVariable select="cardinality($action/@rightOperand , 0)"
var="hasRightOperand"/>
<c:when test="$hasRightOperand">
.. . .. insert exist code to perform . . ..
</c:when>
<c:otherwise>
....... insert otherwise code to peroform. . ..
</c:otherwise>
</c:choose>
"Stu" <evaandoli@dodo.com.au> wrote in message
news:eu0v03$afr$1@utils.eclipse.org...
> Is it possible to check whether a tag exists in the file ?
> something like
> <c:when exists $node/@name>
>
> . . . blah blah
>
> </when>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03138 seconds