Lars Both wrote:
> i want to do the following. I have data in a XML-File.
> Additionaly I have a XML Schema which defines valid values for every
> field and alternative options.
> Now I want to create a Stylesheet (for xalan for example) that creates
> HTML respecting the actual valus in the XML file and the default data
> in the Schema.
>
> An example. The field 'color' has the alternatives red,green and blue
> (defined in the XSD). The user already choose green in an earlier
> session. This is stored in the XML-File. Now the HTML should offer the
> user a select-field with the three options, and 'green' preselected.
>
> Any ideas?
XSLT 2.0 and XPath 2.0 have (optional) XSD schema support, Saxon is
already available as an implementation trying keep up with the XSLT
2.0/XPath 2.0 (and even XQuery 1.0) specifications while they reach the
final status. However the schema aware version of Saxon is a commercial
product, check <http://www.saxonica.com/> for details.
With XSLT/XPath 1.0 all you can do is write your own stylesheet
templates extracting for instance the enumerated values from the schema.
--
Martin Honnen
http://JavaScript.FAQTs.com/