|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Identifying absent behavior
From: <Noah_Mendelsohn@lotus.com>
Date: Wed, 7 Nov 2001 10:52:56 -0500 To: "Chan, Philip" <Philip.Chan@rbccm.com> Cc: xmlschema-dev@w3.org Message-ID: <OFB3D8788A.A81E9AE4-ON85256AFD.0057C29F@lotus.com> Philip Chan writes: >> It seems to me that there is no difference between <t></t> and <t/> according to schema definition It's not schema that makes them the same, it's XML. From [1]: [Definition: An element with no content is said to be empty.] The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. [Definition: An empty-element tag takes a special form:] In the XML Infoset Recommendation [2], which schema uses as its input, the two are indistinguishable. So, schema essentially can't tell the difference if it wants to. DTD's have the same characteristic (though use of the <t/> form is encouraged for elements explicitly declared as EMPTY). [1] http://www.w3.org/TR/REC-xml#sec-starttags [2] http://www.w3.org/TR/xml-infoset/#infoitem.element ------------------------------------------------------------------------ Noah Mendelsohn Voice: 1-617-693-4036 Lotus Development Corp. Fax: 1-617-693-8676 One Rogers Street Cambridge, MA 02142 ------------------------------------------------------------------------Received on Wednesday, 7 November 2001 11:03:01 GMT |
Subscribe in XML format
|






