[relaxng-user] embedding DocBook in another schema

tbrown at nrri.umn.edu tbrown at nrri.umn.edu
Thu Mar 10 11:08:27 ICT 2005


On Thu, 10 Mar 2005, Bruce D'Arcus wrote:

>
> 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.

Ah, I have a top-level default namespace, but it didn't occur to me 
to re-declare the default namespace, like

<para xmlns="db">
   <itemizedlist/>
<para>

which lets me leave out all the db: verbosity, thanks for the nudge.

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

I'm not sure which one I downloaded, I'll check.

Cheers -Terry

-----------------------------------------------------------------------
Terry Brown               Natural Resources Research Institute
Research Associate        5013 Miller Trunk Highway
tbrown at nrri.umn.edu       University of Minnesota, Duluth
Ph. 218 720 4345          Duluth, Minnesota 55811
Fax 218 720 4328          http://beaver.nrri.umn.edu/~tbrown/



More information about the relaxng-user mailing list