Hi all,
Problem: Given a nodeset that can have any number of repeats. Display using a single output control a list of value from that nodeset. i.e not using a repeat that display each text node within its control but create a concatanated list of values and then display it. Solution: Hints: bind and calculate are probably involve but aside from using a repeat control I do not know how to iterate over a list in order to generate a concanated list!!! Example: Like Eric once wrote me code talks...... Marco _________________________________________________________________ Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets you stay in touch with friends and family wherever you go. Click here to find out how to sign up! http://www.telusmobility.com/msnxbox/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws output-list.xhtml (2K) Download Attachment |
What you want is something along the lines of
<xforms:output value="string-join(instance('data')/foo/bar, ', ')">
<xforms:label>A comma-separated list</xforms:label>
</xforms:output>
Cheers,
Dave
>>> Marco Lebel 28/11/2006 2:02 p.m. >>> Hi all, Problem: Given a nodeset that can have any number of repeats. Display using a single output control a list of value from that nodeset. i.e not using a repeat that display each text node within its control but create a concatanated list of values and then display it. Solution: Hints: bind and calculate are probably involve but aside from using a repeat control I do not know how to iterate over a list in order to generate a concanated list!!! Example: Like Eric once wrote me code talks...... Marco _________________________________________________________________ Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets you stay in touch with friends and family wherever you go. Click here to find out how to sign up! http://www.telusmobility.com/msnxbox/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks Dave,
That is exactly what I needed. My problem is that I did not know of that function... after some research I found it part of xpath 2.0. Does that mean that the xpath engine is base on version 2.0 of XPATH ? Inquiring mind wanted to know... Marco >From: "David McIntyre" <[hidden email]> >Reply-To: [hidden email] >To: "Adrian Baker" <[hidden email]>, "David >Teirney"<[hidden email]>, "Jonathan J >Wright"<[hidden email]>, "Louis Ho" ><[hidden email]>, [hidden email], >[hidden email] >Subject: Re: [ops-users] Displaying a list with the output control >Date: Tue, 28 Nov 2006 14:44:49 +1200 > >What you want is something along the lines of > ><xforms:output value="string-join(instance('data')/foo/bar, ', ')"> > <xforms:label>A comma-separated list</xforms:label> ></xforms:output> > >Cheers, > > Dave > > Dave McIntyre >Software Developer > >2nd Floor, Orion House, cnr Enfield & Mary St, Mt Eden, PO Box 8273, >Auckland, New Zealand >M.+64 21 212 8087 P.+64 9 638 0600 F.+64 9 638 0699 >S.dave.mcintyre [hidden email] W.www.orionhealth.com > > > >This e-mail and any attachments are intended only for the person to whom it >is addressed and may contain privileged, proprietary, or other data >protected from disclosure under applicable law. If you are not the >addressee or the person responsible for delivering this to the addressee >you are hereby notified that reading, copying or distributing this >transmission is prohibited. If you have received this e-mail in error, >please telephone us immediately and remove all copies of it from your >system. Thank you for your co-operation. > > > >>> Marco Lebel 28/11/2006 2:02 p.m. >>> >Hi all, > >Problem: >Given a nodeset that can have any number of repeats. Display using a >single >output control a list of value from that nodeset. i.e not using a repeat >that display each text node within its control but create a concatanated >list of values and then display it. > >Solution: > > >Hints: >bind and calculate are probably involve but aside from using a repeat >control I do not know how to iterate over a list in order to generate a >concanated list!!! > >Example: >Like Eric once wrote me code talks...... > >Marco > >_________________________________________________________________ >Off to school, going on a trip, or moving? Windows Live (MSN) Messenger >lets >you stay in touch with friends and family wherever you go. Click here to >find out how to sign up! http://www.telusmobility.com/msnxbox/ > >-- >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 >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws _________________________________________________________________ Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets you stay in touch with friends and family wherever you go. Click here to find out how to sign up! http://www.telusmobility.com/msnxbox/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
As I understand it, Orbeon uses
Saxon as it's XPath engine which, because it's an XSLT 2.0 engine,
supports XPath 2.0.
Adrian Marco Lebel wrote: Thanks Dave, -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Marco Lebel
Marco Lebel wrote:
> Thanks Dave, > > That is exactly what I needed. My problem is that I did not know of > that function... after some research I found it part of xpath 2.0. Does > that mean that the xpath engine is base on version 2.0 of XPATH ? > > Inquiring mind wanted to know... That's right, we use XPath 2.0. There is no coming back to 1.0 once you have tasted 2.0 ;-) -Erik -- Orbeon Forms - XForms Everywhere http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |