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
Message-Id: <E1EDZbc-0005H0-Fp@wiggum.w3.org>


           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:
Received on Friday, 9 September 2005 03:31:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:03 UTC