- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 11 Mar 2003 09:16:51 +0000
- To: "Liu, Hong" <Hong.Liu@neustar.biz>
- Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
"Liu, Hong" <Hong.Liu@neustar.biz> writes: > It seems to me that one can put any QName attribute in the start tag of an > element in an XML instance document, as long as the attribute is globally > defined in a namespace other than the target namespace (if exists) of the > schema for the instance document. Is this true? Thanks! Not quite -- just as for DTDs, schema-validity requires _some_ kind of declaration for attributes -- what you're thinking of would involve an attribute wildcard, e.g. <anyAttribute namespace="##other"/> Including this in a type definition would allow any number of attribute with an explicit prefix declared as a namespace _other_ than the target namespace of the containing schema. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 11 March 2003 04:16:53 UTC