Aggregate Concat with a jet function [message #30415] |
Wed, 08 August 2007 11:42 |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Hi,
Im looking at doing a aggregate concat with the new value passed to a jet
function first.
Now for some reason I thought you might not understand what I meant by that
so here is an example :-)
<c:setVariable var="csvImportList"
select=" '{$csvImportList},'surroundInDoubleQuotes('{$tempCompoundNod e/@leftOperand}.csv') "/>
all is ok if I take out the function and just have one set of '
<c:setVariable var="csvImportList"
select="'{$csvImportList},{$tempCompoundNode/@leftOperand}.csv' "/>
I dont want to have to write another jet function just for this :-)
Any clues,
Stu
|
|
|
Re: Aggregate Concat with a jet function [message #30557 is a reply to message #30415] |
Wed, 08 August 2007 15:50 |
Paul Elder Messages: 849 Registered: July 2009 |
Senior Member |
|
|
Stu:
The following should work:
<c:setVariable var="csvImportList" select="concat($csvImportList, ',' ,
surroundInDoubleQuotes($tempCompoundNode/@leftOperand), '.csv')" />
In general, I think you should be suspicious of embedding dynamic XPath
expressions (Xpath expressions in {...}) within an XPath expression - these
may always be rewritten with them.
Paul
"Stu" <evaandoli@dodo.com.au> wrote in message
news:f9ca70$uf8$1@build.eclipse.org...
> Hi,
>
> Im looking at doing a aggregate concat with the new value passed to a jet
> function first.
> Now for some reason I thought you might not understand what I meant by
> that so here is an example :-)
> <c:setVariable var="csvImportList"
> select=" '{$csvImportList},'surroundInDoubleQuotes('{$tempCompoundNod e/@leftOperand}.csv') "/>
>
> all is ok if I take out the function and just have one set of '
>
> <c:setVariable var="csvImportList"
> select="'{$csvImportList},{$tempCompoundNode/@leftOperand}.csv' "/>
>
> I dont want to have to write another jet function just for this :-)
>
> Any clues,
>
> Stu
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03036 seconds