W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2088] R-098: Question about the canonical rep'n of QName

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 03:31:12 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDZbc-0005H0-Fp@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2088

           Summary: R-098: Question about the canonical rep'n of QName
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


The lexical representation of a QName has the form "prefix:localpart" 
(or "localpart"), and the value of a QName is a tuple {namespace, localpart}. 
How is a QName value converted to its canonical representation?

This problem occurs when a default/fixed attribute/element value is of type 
QName. In this case, how is it applied to the instance? For example:

<attribute name="att" type="QName" xmlns:p1="my_uri" default="p1:local"/>
If the above attribute doesn't appear in an instance, we should add a new 
attribute. But what would be the (string) value of the added attribute? (Note 
that the prefix "p1" might not be declared in the instance, or it's possible to 
be bound to a different namespace uri.)

See question 1 from:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0222.html
Received on Friday, 9 September 2005 03:31:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT