[relaxng-user] embedding DocBook in another schema

tbrown at nrri.umn.edu tbrown at nrri.umn.edu
Thu Mar 10 10:26:38 ICT 2005


On Thu, 10 Mar 2005, Sebastian Rahtz wrote:

> tbrown at nrri.umn.edu 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
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