The QName URN NamespaceBEA Systems, Inc.625 W 22nd AveVancouverBCV5Z 1Z5Canada+1 778-772-8425dorchard@bea.comhttp://www.bea.comDataPower Technology, Inc.1 Alewife CenterCambridgeMA02142US+1 617-864-0455rsalz@datapower.comhttp://www.datapower.comNamespaces, QName, XML, URNThis specification defines a Uniform Resource Name namespace for XML
namespace-qualified names, QNames. As long as the URN is encoded in
the same character set as the document containing the original QName,
the Qname URN provides enough information to maintain the semantics,
and optionally the exact syntax, of the original name.This specification defines a Uniform Resource Name namespace for XML
namespace-qualified names, QNames. As long as the URN is encoded in
the same character set as the document containing the original QName,
the Qname URN provides enough information to maintain the semantics,
and optionally the exact syntax, of the original name.There are a variety of situations when a QName may need to be mapped
to a URI. For example, when exchanging (or referencing) an identifier
for an XML element contained within a document, and the medium of
exchange prefers URIs to QNames, such as an XML Schema anyURI data
type. Another scenario is for comparing the identifiers, which can be
simpler by comparing just a string without having to also compare the
context setting XML namespace attribute that may be declared
arbitrarily earlier in the document.The XML Namespaces specification does not
provide a canonical mapping between QNames and URIs. Any XML
specification that wants to enable identifier exchanges must define
a language specific QName to URI mapping. There have emerged a
variety of different algorithms and solutions for the mapping. To
date, there have been no standardized algorithms available that
they can re-use, which has increased their efforts. A standardized
mapping, such as this, should provide increased productivity.Almost all of the algorithms for Qname to URI mappings are based
upon concatenation of the URI and the name with variations based
upon prefix inclusion, namespace name and name separator, etc.
These are typically problematic because it is difficult to recover
the QName from the URI as the namespace name and name separator may
have already been used in the namespace name. Having the namespace
name at the end of the identifier string avoids these and other
problems.The following paragraphs contain the URN namespace registration
data, as defined in .
qname
Version number: 1
Registration date: 2004-11-30
The W3C Technical
Architecture Group (TAG), reachable at tag@w3.org.
The QName URN is structured as four colon-separated fields.
Note that colons within the fourth field, the URI part, are not
significant; the entire fourth field is treated as a single
opaque entity by this URN scheme.
The first field identifies the naming scheme.
The second contains the QName prefix, or an empty string if
the QName comes from the default namespace, or an asterisk
if the prefix is not significant.
A QName URN is defined by the following ABNF :
Here are three examples of a QName URN:
The first correspond to the following element content
QNames (the element name is not significant):
The third example would match both of the others, as
well as an inifinite number of QNames, since
the namespace prefix is explicitly marked as "don't-care."
An XML QName is semantically defined as a (namespace-uri,
localname) pair; the namespace prefix is not significant.
For some applications, such as signature functions, the
prefix is important and must be preserved.
The QName URN provides both a one-to-one mapping, that
preserves the uniquess of the underlying QName, and an
explicit many-to-one mapping, that does not preserve
the uniquess when it is not important to do so.
QName URN's have the same persistance as the underlying
XML QName from which they are derived.
Assignment of identifiers depends on the original XML QName,
typically deferring to the namespace URI. Anyone with access to
an XML QName can create an equivalent QName URN; no registration
is required.
Inherited from the QName resolution rules (typically the
namespace URI) from which the QName URN is created.
If necessary, convert each QName URN to the same encoding.
The encoding of a QName URN is determined by context, and depends
on the encoding of the document in which it appears.
To be lexically equivalent the resultant QName URN's must be
identical when compared byte-for-byte. To be semantically
equivalent, ignore the prefix field when comparing bytes.
Fully conformant.
Inherited from the namespace URI of the original QName.
Inherited from the original QName.This scheme can also support the XML 1.1
and XML namespaces 1.1 standards.In the 1.1 Namespace specification, namespace URI's (universal
resource identifiers; see ...xref...) become IRI's (internationalized
resource identifiers, see ...xref...).
Although currently an Internet-Draft, and therefore not feasible to
use as a normative reference here, it is expected that the final RFC
will continue to define a way to map IRI's to URI's.
To apply this specification to IRI's, then, first apply that mapping
before using the syntax here.QName URN's provide a way to transcribe XML QName's into and out of
URN syntax. Any security considerations are inherited from the
original QName.Extensible Markup Language (XML) 1.0 (Third Edition)Textuality and Netscapetbray@textuality.comMicrosoftjeanpa@microsoft.comW3Ccmsmcq@w3.orgSun Microsystems, Inc.eve.maler@east.sun.comfrancois@yergeau.comExtensible Markup Language (XML) 1.1Textuality and Netscapetbray@textuality.comMicrosoftjeanpa@microsoft.comW3Ccmsmcq@w3.orgSun Microsystems, Inc.eve.maler@east.sun.comfrancois@yergeau.comcowan@ccil.orgNamespaces in XMLTextualitytbray@textuality.comHewlett-Packarddmh@corp.hp.comMicrosoftandrewl@microsoft.comNamespaces in XMLTextualitytbray@textuality.comContivo, Inc.dmh@contivo.comMicrosoftandrewl@microsoft.comUniversity of Edinburgh and Markup Technology
Ltd.richard@cogsci.ed.ac.ukURN Namespace Definition MechanismsThinking Cat Enterprisesleslie@thinkingcat.comISIS/STA/CEO - TP 270, Joint Research Centre IspraDirk.vanGulik@jrc.itDSTC Pty Ltdrenato@dstc.edu.auTele2/Swipnetpaf@swip.netAugmented BNF for Syntax Specifications: ABNFInternet Mail Consortiumdcrocker@imc.orgDemon Internet Ltdpaulo@turnpike.com