Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Another XML Schema one: Named local declarations, whar are their contents?

From: Soren Kuula <dongfang@--------.-->
To: NULL
Date: 9/4/2005 1:08:00 AM
Hi, if I do:

<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tg = "http://dongfang.dk/testdata"
targetNamespace="http://dongfang.dk/testdata"
elementFormDefault="qualified">

<complexType name="typename">
   <sequence>
     <element name="n1" minOccurs="0"/> <!-- q1 -->
     <element ref="tg:n2" minOccurs="0"/>
   </sequence>
</complexType>

<element name="n1">
   <complexType>
     <sequence>
       <element name="n1" minOccurs="0"/> <!-- q2 -->
       <element ref="tg:n2" minOccurs="0"/>
     </sequence>
   </complexType>
</element>

<element name="n2">
   <complexType>
     <sequence>
       <element name="n1" minOccurs="0"/> <!-- q2 -->
       <element ref="tg:n2" minOccurs="0"/>
     </sequence>
   </complexType>
</element>
</schema>


-- should I expect that the element at <!-- q1 --> somehow gets its 
contents declared by the top level n1 declaration -- or should I expect 
that its contents remain undefined?
I believe I am clear enough about the one directly below; they refer to 
the top level declaration of n2, with contents and all, right?

Does the same thing hold for the ones at q2? (only difference is really 
  that the type definitions are local, right?)

-- I know that the "tg:typename" type is never actually used, but that 
should not affect the answers :)

TNX for any input. I'll play with an implementation of a validator in 
the mean time, but, hey, you never know if there is a bug, now that I'm 
confused (too?).

Reading the TR and trying to understand it is my last option :)

Søren


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent