concatenation in JET2 in get default function [message #6517] |
Fri, 23 March 2007 15:37 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Hi,
I'd like to perform a concatenation on the default value in the <c:get
Is this possible ?
Something like:
<c:get select="$node/@name" default=("No name entered for "<c:get
select="$node/@tag" />) />
|
|
|
|
Re: concatenation in JET2 in get default function [message #6674 is a reply to message #6619] |
Tue, 27 March 2007 03:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Paul,
Thanks for the two replies - excellent result.
I also assume http://www.w3.org/TR/xpath is a good source for reference
manual for this sort of thing
Thanks again,
Stu
"Paul Elder" <pelder@ca.ibm.com> wrote in message
news:eu8dgq$uqc$1@utils.eclipse.org...
> Stu:
>
> Answer is "yes", but not the way you do it.
>
> You cannot embed one XML tag inside another. Instead, you have to use a
> "dynamic XPath" expression - an XPath expression between { and }. So,
> write:
>
> <c:get select='$node/@name" default="No name entered for
> '{$node/@tag}'."/>
>
> Paul
>
> "Stu" <evaandoli@dodo.com.au> wrote in message
> news:eu0uek$6u7$1@utils.eclipse.org...
>> Hi,
>>
>> I'd like to perform a concatenation on the default value in the <c:get
>>
>> Is this possible ?
>>
>> Something like:
>>
>> <c:get select="$node/@name" default=("No name entered for "<c:get
>> select="$node/@tag" />) />
>>
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03837 seconds