Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: cmsmcq@---.--- (-. -. ----------------)
To: NULL
Date: 9/4/2005 9:23:00 AM
Soren Kuula <dongfang@d...> writes:

> 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>
> 
> ...
>
> </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?

No, neither undefined nor (as you suggest in a later posting)
undefined.  The <element name="n1" .../> is a perfectly
normal declaration: it declares an element named n1 local 
to type tg:typename. The type associated with n1 defaults
to anyType.

--C. M. Sperberg-McQueen
  World Wide Web Consortium


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