- From: Eric van der Vlist <vdv@dyomedea.com>
- Date: Thu, 18 Oct 2001 15:06:09 +0200
- To: xmlschema-dev@w3.org
Many types (see below ID, ENTITY and NOTATION but there are more in the rec) are defined with whitespace="collapse" which would have made me think that leading and trailing whitespaces should be accepted and trimmed but their description clearly says that their lexical space should meet a production (NCName) which does not accept these whitespaces. Do we really want to forbid this ? <book> <id xsi:type="xs:ID"> book1 </id> </book> If yes, what was the motivation to set whitespace="collapse"? Thanks Eric (more puzzled) References: http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName [4] NCName ::= (Letter | '_') (NCNameChar)* /* An XML Name, minus the ":" */ [5] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender http://www.w3.org/TR/xmlschema-2/#ID [Definition:] ID represents the ID attribute type from [XML 1.0 (Second Edition)]. The ·value space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ID is NCName. http://www.w3.org/TR/xmlschema-2/#ENTITY [Definition:] ENTITY represents the ENTITY attribute type from [XML 1.0 (Second Edition)]. The ·value space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML] and have been declared as an unparsed entity in a document type definition. The ·lexical space· of ENTITY is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ENTITY is NCName. http://www.w3.org/TR/xmlschema-2/#NOTATION [Definition:] NOTATION represents the NOTATION attribute type from [XML 1.0 (Second Edition)]. The ·value space· of NOTATION is the set QNames. The ·lexical space· of NOTATION is the set of all names of notations declared in the current schema. -- Rendez-vous à Paris pour le Forum XML. http://www.technoforum.fr/Pages/forumXML01/index.html ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com http://xsltunit.org http://4xt.org http://examplotron.org ------------------------------------------------------------------------
Received on Thursday, 18 October 2001 09:05:46 UTC