Hi Ali, Arjan,
Your approach to generating schema based froms is commendable. There are a few things that are not supported currently.
1) Support for all basic types (string enum, integer, boolean etc.)
2) Conditions.
I am more interested in discussing how the choose option can be supported in the MetaXSLgui
I have the following solution in mind, since I used a similar approach in my project.
Generate the forms for all the children under the choose parent. Add javascript to enable(display) the child depending on the value to which the choose option is bound to.
e.g. choose (condition) optionA optionB ...
For sake of simplicity let us assume that the choose option is bound to the value of a parent element. Now we can generate javascript code around this element to display the appropriate subtree depending on the selection.
Please comment. Thanks,
-Ram
|