W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

RE: Why doesn't this instance document validate?

From: John Verhaeg <jverhaeg@metamatrix.com>
Date: Fri, 23 Aug 2002 12:06:33 -0500
Message-ID: <C7CDD3E67B05D411A45800E018C1614EE6DA8C@mail>
To: "'ht@cogsci.ed.ac.uk'" <ht@cogsci.ed.ac.uk>, Dare Obasanjo <dareo@microsoft.com>
Cc: noah_mendelsohn@us.ibm.com, "XML Schema Mailing List (E-mail)" <xmlschema-dev@w3.org>

Let me just throw in here that I misread Henry's original response about
elementFormDefault.  I read the value as "unqualified" instead of
"qualified".  This works, each of your responses now makes perfect sense to
me, and all is well with the universe.  Thanks again.

John P. A. Verhaeg

-----Original Message-----
From: ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk]
Sent: Friday, August 23, 2002 11:34 AM
To: Dare Obasanjo
Cc: noah_mendelsohn@us.ibm.com; John Verhaeg; XML Schema Mailing List
Subject: Re: Why doesn't this instance document validate?

"Dare Obasanjo" <dareo@microsoft.com> writes:

> Of course, note that the W3C XML Schema notion of qualified (has a
> namespace) is different from the meaning of qualified in almost all
> other contexts involving XML including the Namespaces in XML
> recommendation where qualified means "has a prefix".

Um, not on my reading.  Here's the formal definition of 'qualified
name', excerpted from the REC [1]

  "[Definition:] In XML documents conforming to this specification,
  some names (constructs corresponding to the nonterminal Name) may be
  given as *qualified names*, defined as follows:

   Qualified Name

    [6] QName ::= (Prefix ':')? LocalPart

You will note that the prefix+colon is optional.  This is consistent
with usage in the rest of the document, although somewhat confusingly
on this account unprefixed attributes are none-the-less qualified

I'm pretty sure that I'm not alone in my usage, summarised as follows:

 prefixed name:  name consisting of two NCNames separated by a colon (:)
 qualified name: prefixed name appearing as element or attribute name
                 unprefixed name appearing as element name in scope of 
                  default NS declaration

The XSLT/XPath use of QName is as per attribute names; The W3C XML
Schema usage is as per element names.


[1] http://www.w3.org/TR/REC-xml-names/#ns-qualnames
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, 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/
 [mail really from me _always_ has this .sig -- mail without it is forged
Received on Friday, 23 August 2002 13:06:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC