Re: embedding DocBook in another schema
[email protected] Thu, 10 Mar 2005 11:08:27 -0500 (EST)
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <Pine.LNX.4.62.0503101104290.4917@stoat> |
On Thu, 10 Mar 2005, Bruce D'Arcus wrote: > > On Mar 10, 2005, at 10:26 AM, [email protected] 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 [email protected] University of Minnesota, Duluth Ph. 218 720 4345 Duluth, Minnesota 55811 Fax 218 720 4328 http://beaver.nrri.umn.edu/~tbrown/