Generating switch/case

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

Generating switch/case

Mark Seaborne
Hi there,

I'm just wondering if there is any way I can generate the switch/case construct from an instance document using repeat?

best wishes

Mark


--
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: Generating switch/case

Grégoire Neuville
Hi,

You could write an xbl component that would make use of one of the
xslt processors, such as described here :

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide#TOC-xbl:template-xxbl:transform-attribu

Alternatively, you could write an XPL service that would also rely on
an xslt processor.

Either way, the ids of the cases could be generated through the use of AVTs.

HTH,

Grégoire Neuville.

On 3 October 2011 13:12, Mark Seaborne <[hidden email]> wrote:

> Hi there,
>
> I'm just wondering if there is any way I can generate the switch/case construct from an instance document using repeat?
>
> best wishes
>
> Mark
>
>
> --
> 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
>
>


--
Grégoire Neuville


--
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: Generating switch/case

Erik Bruchez
Administrator
In reply to this post by Mark Seaborne
Mark,

Repeat cannot generate new cases. Those are statically defined within a switch.

As Grégoire mentioned, you could use XSLT or XBL instead.

-Erik

On Mon, Oct 3, 2011 at 4:12 AM, Mark Seaborne <[hidden email]> wrote:

> Hi there,
>
> I'm just wondering if there is any way I can generate the switch/case construct from an instance document using repeat?
>
> best wishes
>
> Mark
>
>
> --
> 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
>
>


--
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