Venkat:
You can use a dynamic include for this.
In the most extreme case, your XSD may be defined two as a single dynamic include (<xs:include schemaLocation="root_relative_path_in_
sandbox_to_some_JSP: /> that returns a complexType and one single
defined element whose type is the complexType returned by your
include. About as short an XSD as you can get.
Now, your dynamic include (your JSP, which must be contained within
a sandbox so that the Virtualization Server can generate it) must generate
a valid XMLSchema - an XSD. If it does not, your Web Form will not
work.
Why use JSP to generate the XSD? Because this way, you can get
whatever environment or session information you need to auto-populate
and marked as FIXED (read-only) any fields you which. Basically, your
entire Web Form can be on-the-fly generated.
Test it out and report back. This is one of many reasons that we enabled
this capability for.
Kevin