Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: 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?To: NULL Date: 9/4/2005 2:26:00 AM Soren Kuula wrote:
Well my validator accepts
<n1 xmlns = "http://dongfang.dk/testdata">
<n1>
<skunk/>
</n1>
<n2>
<n1>
<goat/>
</n1>
</n2>
</n1>
so I guess the answer is: When specifying the name only, in a local
element decl, type is not defined - - even if there is a top level
declaration of the same-named element.
I cannot get it to accept:
<n1 xmlns = "http://dongfang.dk/testdata">
<n1>
<skunk/>
</n1>
<n2>
<n1>
<goat/>
</n1>
</n2>
<goat/>
</n1>
(complaint about the last goat --- should obviously complain)
or
<n1 xmlns = "http://dongfang.dk/testdata">
<n1>
<skunk/>
</n1>
<n2>
<n1>
<goat/>
</n1>
<n2>
<skunk/>
</n2>
</n2>
</n1>
(compliant about the last skunk -- not in the content model of n2 REFd
from the content model of n2)...
OK unless this is wrong, I guess it's solved:)
Søren
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
