RE: [docbook-apps] xml:id xl:href namespace declarations

From
Mauritz Jeanson <>
Date
2006-09-03T16:58:42+00:00
ID
003f01c6cf7a$40336e70$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] xml:id xl:href namespace declarations
> -----Original Message-----
> From:  
> Is it wrong to use these attributes in a DocBook 5 document when I
> haven't declared these namespaces? The DocBook schema references the
> namespaces, but oXygen plays dumb on content completion from them
> unless I add the namespaces to the source.
> 
> 
> Like so:
> <chapter xml:id="blahblah"
> 	xmlns="http://docbook.org/ns/docbook"
> 	xmlns:xl="http://www.w3.org/1999/xlink"
> 	xmlns:xml="http://www.w3.org/XML/1998/namespace"
> 	version="5">


It should not be necessary to declare the namespace with the 'xml:' prefix
anywhere (since it is a special predeclared prefix). So the xml:id behaviour
seems like a Oxygen quirk.

The XLink namespace must always be declared if you want to use it.

/MJ