W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

Re: xs:redefine of a imported namespace group

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 21 Apr 2003 10:19:34 +0100
To: "Robert Koberg" <rob@koberg.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5br87wqkbd.fsf@erasmus.inf.ed.ac.uk>

When I run XSV on your example, I get, _inter alia_, the following
error, which suggests your import/redefine architecture isn't quite

<schemaDocAttempt URI="http://livestoryboard.com/lsb/Schemas/xhtml_modfd.xsd"
    outcome="Failure: targetNamespace mismatch:
       http://livestoryboard.com/lsb/Schemas/2003/03/content expected,
       http://livestoryboard.com/lsb/Schemas/2003/03/xhtml1 found"
    source="redefine, in unnamed entity at line 8 char 3 of

<redefine> is like <include>, it works within a single namespace:

  "[redefined] schema documents must either (a) have the same
  targetNamespace as the <redefine>ing schema document, or (b) no
  targetNamespace at all, in which case the <redefine>d schema
  document is converted to the <redefine>ing schema document's
  targetNamespace."  [1]

If you want to redefine names in your xhtml1 namespace, you need to do
so in a schema document whose target namespace is xhtml1.


[1] http://www.w3.org/xmlschema-1/#modify-schema
  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 Monday, 21 April 2003 05:19:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:01 UTC