Since this xml document only has Undergraduate elements (Graduate elements would not be legal)
the WYSIWYG editor does not know about the Graduate element.
What I would like to do is generate HTML where either a table with
Undergraduate info or Graduate info depending on the xml content.
Can I somehow use the Schema instead of a sample xml file to generate
the stylesheet (still with WYSIWYG). If so, how. If not, what would you
suggest?
Subject:Re: Using WYSIWYG and "choice" element Author:Minollo I. Date:07 Dec 2004 08:34 PM
>...
>Can I somehow use the Schema instead of a sample xml file to generate
>the stylesheet (still with WYSIWYG). If so, how. If not, what would you
>suggest?
WYSIWYG provides a design "preview" of your XSLT; in order to properly
display possible choices, you need to provide one (or more) XML document as
input that contains such choices. Possible solutions to your problem are:
- running WYSIWYG using different XML documents to exercise different
parts of the XSLT
- creating an XML instance out of the XML schema representing the input
(not sure how that would work with your schema, but you can try using the
"XML Schema to XML" document wizard to do that)
- manually modifying the XML document you are currently using as input
adding a simulated entry of the element it's missing and that you know may
show up