Giacomo Pati <[EMAIL PROTECTED]> schrieb am 08.11.2006 09:21:21:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jan Behrens wrote:
> > Hi,
> > 
> > working on my first Cocoon project I am facing the following problem; 
I am 
> > generating a html form using cforms from a given schema (and 
accompanying 
> > xml data file). The schema contains a couple of xs:choice 
instructions. At 
> > the moment this is treated as the same as a sequence, e.g. the form 
> > expects _all_ elements to be filled in, not only one choice. Can 
somebody 
> > give me an idea on howto implement a transformation that generates a 
form 
> > that will enable an (xor) choice?
> > I am working with version 2.1.9 and have been adopting the schema2form 

> > example given by Niels van Kampenhout to get this far.
> > 
> > Any help is greatly appreciated!
> 
> Maybe the fd:union is what you are looking for (datasource selector in 
the
> forms samples) where another widget (case attribute of fd:union) 
determines
> the set of widgets you want to be displayed.

Hi Giacomo,

thanks for the suggestion, I will give it a try.

Cheers, Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to