Użytkownik "TOUDIdel" <toudidel@oDWA.plnapisał w wiadomości
news:%230ccn$5tIHA.4560@TK2MSFTNGP03.phx.gbl...
Quote:
>I define element wihout certaint type declaration (there aren't type
>attribute, complex or simple type child):
e.g.
<xs:element name="invoice"/>
MSXML doesn't report any errors when that element contains some text
content.
I believe to MSXML but I cant find in specification why is it possible and
correct?
|
http://www.w3.org/TR/xmlschema-1/#declare-element
"An <elementwith no referenced or included type definition will correspond
to an element declaration which has the same type definition as the head of
its substitution group if it identifies one, otherwise the .ur-type
definition.. This has the important consequence that the minimum valid
element declaration, that is, one with only a name attribute and no
contents, is also (nearly) the most general, validating any combination of
text and element content and allowing any attributes, and providing for
recursive validation where possible."
Does it explains an issue?
--
td