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

HTH

Ciao

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

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFUZOBLNdJvZjjVZARAmcyAKCPWhUuJH36DhKH6H6rRgl60TubcACdFxeg
XxcshLN49Mbg9h5v7fbySRM=
=mNNz
-----END PGP SIGNATURE-----

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

Reply via email to