An XML namespace is not an URI; rather it is is *identified* by an URI 
reference. To be more precise, a subset of URI references with semantics that 
differ from URI references in general.

The empty string is an URI reference, but the empty string cannot be used as an 
XML namespace name. Relative URI references are deprecated as XML namespace 
names. XML namespace names are compared by string equality, i.e. not the way 
URI references are resolved. [1]

In short: an XML namespace name looks a lot like an URI, and an XML namespace 
declaration look a lot like assigning a value to an attribute. But you cannot 
really infer much about the semantics of XML namespaces from that. An XML 
namespace name is not a type of URI.

[1] http://www.w3.org/TR/REC-xml-names


Kind regards
Peter Ring

> -----Original Message-----
> From: Jirka Kosek [mailto:[EMAIL PROTECTED]
> Sent: 7. marts 2007 21:52
> To: Bob Stayton
> Cc: Chris Chiasson; Dave Pawson; Docbook List
> Subject: Re: [docbook] namespace markup
> 
> 
> Bob Stayton wrote:
> > In DocBook 4.5, the <sgmltag> element has a class attribute with
> > enumerated values.  One of those enumerated values is 
> 'namespace'.  For
> > some reason, the equivalent <tag> element in 5.0 is missing 
> that value
> > and a few others. I think it is an oversight, and I filed 
> an RFE to see
> > if it should get fixed.  So I think this is how a namespace 
> name should
> > be marked up:
> > 
> > <tag class="namespace">http://docbook.org/ns/docbook</tag>
> 
> I still think that
> 
> <uri type="xmlnamespace">http://docbook.org/ns/docbook</uri>
> 
> is much more proper way of marking namespace. Namespace itself is not
> "tag", nor other part of markup.
> 
>                               Jirka
> 
> -- 
> ------------------------------------------------------------------
>   Jirka Kosek      e-mail: [EMAIL PROTECTED]      http://xmlguru.cz
> ------------------------------------------------------------------
>        Professional XML consulting and training services
>   DocBook customization, custom XSLT/XSL-FO document processing
> ------------------------------------------------------------------
>  OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
> ------------------------------------------------------------------
>  Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to