Subject:Problem to create Schema from XML Content Author:Ivan Pedruzzi Date:28 Feb 2012 03:20 PM
Hi Fernando,
Which Stylus Studio version you have been running before?
The declaration you have posted is invalid, the attribute "name" cannot be empty
<xs:element name="" type="xs:string"/>
The latest release defaults to elementFormDefault="qualified" globally but depending on how the XML instance is shaped it does override the elementForm, for example given the following XML document
<a:books
xmlns:a="urn:xml:books">
<book>
<title>Java Web Services</title>
</book>
</a:books>
Subject:Problem to create Schema from XML Content Author:Fernando Bizuet Date:28 Feb 2012 03:56 PM
Ivan. Thanks for your answer.
I have XML Enterprise Edition 2006, Release 3 and JVM 1.5.0_0b.
and yes, you are correct. Name attribute has a value. But this is not the problem. The problem is Stylus nowadays is creating xsd files in different way.
Subject:Problem to create Schema from XML Content Author:Ivan Pedruzzi Date:28 Feb 2012 04:43 PM
Yes, in most recent Stylus Studio versions, the schema generator uses the Russian doll style unless an element appears in multiple contexts in which case it defines a global definition.
The following is a quite sophisticated example with an heterogeneous list of media