W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Re: Questio on Prefix before parameter

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 09 Jun 2000 20:52:33 +0100
To: "gmacri@libero.it"<gmacri@libero.it>
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5bln0ezl6m.fsf@cogsci.ed.ac.uk>
"gmacri@libero.it"<gmacri@libero.it> writes:

>  I have received this example:
> 
> <xsd:schema xsd:targetNamespace="http://www.somewhere.org/Book" 
> xmlns:local="http://www.somewhere.org/Book" 
> xmlns:xsd="http://www.w3.org/1999/XMLSchema" >
> 
> <element name="Book" xsd:type="local:BookType" />
> 
> <complexType name="BookType">
> <element name="Title" xsd:type="string" />
> ...
> </complexType>
> </xsd:schema>
> 
> The prefix "xsd" that occur in the expressions :xsd:targetNamespace or 
> xsd:type can occur before other parameters, for example name,minoccurs, 
> maxoccurs,nullable and etc. ? 

The above schema is not valid -- none of the attributes in the schema
for schemas are global (and thus qualified) or local and declared as
qualified: all are local and unqualified, so the above use of
'xsd:type' is mistaken, and to extend it to other attributes would
likewise be mistaken.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-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/
Received on Friday, 9 June 2000 15:52:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC