Sign In/My Account | View Cart  
advertisement

Article:
 Web-based XML Editing with W3C XML Schema and XSLT, Part 2
Subject: Support for choose option
Date: 2006-04-03 14:12:02
From: Ram_Peri

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


Previous Message Previous Message   Next Message No Next Message


Sponsored By: