[Home] [By Thread] [By Date] [Recent Entries]
On Fri, Nov 29, 2013 at 12:02 PM, Steve Newcomb <srn@c...> wrote:
Semantics are in the mind of the author, and they are in the mind of the +1 Parenthetically, I feel I must mention, at least in this xml-dev I know you know better than to conflate the presence of a Document Type Description with the presence of a DOCTYPE declaration. :-)
* Did the transmission conform? The point about the recipient isn't so clear to me. When the recipient validates a document, that says exactly nothing about whether the document is usable to the recipient, because the declarations are *part* of the document. This, I think, is the weakness of classical DTDs: there is no easy way to tell if the DOCTYPE attached to the document by the sender has anything to do with what the recipient expected to see. If Alice claims to send an XHTML document to Bob, then even if he validates it successfully, he has no guarantees that it is not actually a valid TEI document.
The XML Schema / RELAX NG model of validation, in which the schema is both logically and physically outside the document, avoids this problem. In that case, Bob will validate the document against his own XHTML schema, which will tell him not only whether the document is valid, but whether it is valid XHTML. The xsi:schemaLocation attribute and the xml-model PI reintroduce the problem, but in a way that is explicitly ignorable; DOCTYPEs are only partly ignorable, and only when not validating. (Per contra, the use of XML catalogs with DTDs partially mitigates the problem.)
This takes Unless he is a Phaedrus or a Northrop Frye. GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



