Re: embedding DocBook in another schema
[email protected] Thu, 10 Mar 2005 10:26:38 -0500 (EST)
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <Pine.LNX.4.62.0503101020350.4917@stoat> |
On Thu, 10 Mar 2005, Sebastian Rahtz wrote: > [email protected] wrote: > >> I've got as far as >> >> {include href=".../docbook.rng" ns="http://docbook.ns/"} > > is this old "translated to rng" docbook, or new "written as relax" docbook? > >> b) when I "fix" (a) by commenting out the start block in .../docbook.rng I >> get duplicate element definitions (e.g. DocBook also has a step element). > > you may be confusing names of patterns with names of elements? > > in a typical statement like > > step = element step (text) > > the outer "step" is global, the inner element name may be namespaced/ Thanks Sebastian, that was the problem. I pre-fixed all my pattern names with "xmp_" as a sort of pseudo-namespace and it worked. 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} Thanks also to Jirka Kosek for the pointer to the TEI/DocBook stuff, that was intereseting. 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/