outputting string sequences?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

outputting string sequences?

Jim Logan-3
Is there a way to iterate through a sequence of string values and output them? I'd like to do something like the following, which will only output the first string:
<xforms:output value="for $parameter in ('id', 'viewpoint') return concat($parameter, ' is ''', xxforms:get-request-parameter($parameter), '''')"/>
I tried using a repeat, but that doesn't work either.

This also came up yesterday when I was trying to output the sequence of strings that the tokenize() function returns.

Is there some general pattern I can use?

Thanks,
-Jim





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: outputting string sequences?

Erik Bruchez
Administrator
Try:

    string-join(for $parameter..., '')

-Erik

On Jun 9, 2008, at 4:36 AM, Jim Logan wrote:

> Is there a way to iterate through a sequence of string values and  
> output them? I'd like to do something like the following, which will  
> only output the first string:
> <xforms:output value="for $parameter in ('id', 'viewpoint') return  
> concat($parameter, ' is ''', xxforms:get-request-
> parameter($parameter), '''')"/>
> I tried using a repeat, but that doesn't work either.
>
> This also came up yesterday when I was trying to output the sequence  
> of strings that the tokenize() function returns.
>
> Is there some general pattern I can use?
>
> Thanks,
> -Jim
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws