OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

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

oXygen offers all the attributes on content completion, but the 
association between the document and the DocBook schema is done probably 
based on the root element namespace, so if you do not declare the 
DocBook namespace you get no proposals. Once you add the 
xmlns="http://docbook.org/ns/docbook"; namespace declaration you should 
be able to see all the attributes, including the xml:* and the ones from 
the XLink namespace - the later will be inserted by oXygen content 
completion together with a namespace declaration. oXygen does not 
require a declaration for the XML namespace.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Mauritz Jeanson wrote:
>> -----Original Message-----
>> From: chris.chiasson@gmail.com 
>> 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
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]