Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Another XML Schema one: Named local declarations, whar are their contents? >Thread Next - Re: Another XML Schema one: Named local declarations, whar are their contents? Re: Another XML Schema one: Named local declarations, whar are their contents?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
