[relaxng-user] embedding DocBook in another schema

Bruce D'Arcus bdarcus at fastmail.fm
Thu Mar 10 11:44:14 ICT 2005


On Mar 10, 2005, at 10:26 AM, tbrown at nrri.umn.edu wrote:

> I was suprised though that within a DocBook element I still had to 
> specify the namespace.  E.g. nxml-mode requires (in the instance xml 
> file)
>
> {db:para}{db:itemizedlist} ... {/db:itemizedlist}{/db:para}
>
> rather than
>
> {db:para}{itemizedlist} ... {/itemizedlist}{/db:para}

That's just how namespaces in XML work.  In:

<db:para>
   <itemizedlist/>
</db:para>

Itemizedlist does not have a namespace.

However, just as with XML in general, in RNG you can declare a default 
namespace.

BTW, you know v5 of DocBook (now in testing as DocBook NG) is 
namespaced; right?

Bruce



More information about the relaxng-user mailing list