![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - tools generating classes from schema >Thread Next - Attribute wildcard - processContents (XSV and MSXML bug) Schema styles...To: XMLSchema-Dev <xmlschema-dev@--.---> Date: 9/7/2005 9:20:00 PM
When defining a Schema it seems to me that most of the context is in the
XML-Schema namespace, so I keep wondering why there seems to be a
preference for qualifying the XML-Schema namespace rather than the
defined namespace, i.e.
<xs:schema xmlns:xs="http://www.w3.org/2001/XML-Schema"
xmlns="urn:MyContext" targetNamespace="urn:MyContext">
<xs:simpleType name="MyType">
<xs:annotation>
...
</xs:annotation>
...
</xs:simpleType>
<xs:element name=""myType" type="MyType">
<xs:annotation>
...
</xs:annotation>
</xs:element>
</xs:schema>
rather than the (to me, at least) cleaner appearing
<schema xmlns="http://www.w3.org/2001/XML-Schema"
xmlns:my="urn:MyContext" targetNamespace="urn:MyContext">
<simpleType name="MyType">
<annotation>
...
</annotation>
...
</simpleType>
<element name="myType" type="my:MyType">
<annotation>
...
</annotation>
</element>
</schema>
Is there some significant difference in the result?
From K.Buchcik@4... Thu Sep 08 08:47:54 2005
Received: from | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
