Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: If DTD is unspecifed XML should not parse

From: richard@------.--.--.-- (------- -----)
To: NULL
Date: 8/4/2007 12:36:00 PM

In article <OL-dnZy_z9FdUS7bnZ2dnUVZ_tmhnZ2d@c...>,
Joe Kesselman  <keshlam-nospam@c...> wrote:

>There are arguably multiple states: Not validated (well-formed only, not 
>tested), invalid (DTD validation attempted and failed), valid (DTD 
>validation attempted and succeeded),

True, but the XML spec says that validating parsers must report
violations of validity constraints, and a document without a DTD
will violate at least one.

>As far as I can tell, the basic XML Infoset doesn't actually included 
>any indication of these states as part of its information content. 

Yes, the Infoset doesn't address validity except in the cases where
invalidity prevents an item from having a value (notably the
[references] property of attributes).

>Apparently detecting validation success 
>or failure was left to whatever mechanism you use to invoke the parser 
>and/or validator.

All that's required is there must be such a mechanism for a validating
parser.

-- Richard
-- 
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.


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