Hi everybody,
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?
Is my approach right? Maybe there is another way to do something similar.
I am not commited to have 2 files (XSD and XSLT). If there is a way to do
the same thing with one file, thats great to!
Any help is appreciated.
Lars