- From: Costello, Roger L. <costello@mitre.org>
- Date: Thu, 23 Aug 2012 23:51:52 +0000
- To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Received on Thursday, 23 August 2012 23:52:23 UTC
Hello Michael, I am confused. The Title element is declared to be of type string, so a valid value of Title is a string of length zero, right? According to SAXON, that is the case. /Roger Answer: the value of Title is the empty string, not the default value. The reason is that the empty string is a valid value of the string data type. If you want Title to have the default value then you must explicitly enter the default value: <Title>Hello World</Title> WRONG. The default applies when the element is empty, not when it is invalid. Michael Kay Saxonica
Received on Thursday, 23 August 2012 23:52:23 UTC