I am trying to write a document using DocBook Publisher markup which also 
contains some of the technical markup.

In "DocBook Publisher:  The Definitive Guide" by Norman Walsh, it says "it is 
very easy to add elements back into a customization of the Publishers schema.  
For example, if the elements in the programming module were needed, it is very 
simple to use an include statement for the programming.rnc file from the source 
DocBook distribution."

My customization is

<grammar ns="http://docbook.org/ns/docbook"; 
xmlns="http://relaxng.org/ns/structure/1.0";>
<include 
href="/Users/gardner/Dropbox/Library/xml/docbook/5.1CR3/rng/publishers.rng"/>
<include 
href="/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng"/>
</grammar>

Note that the only place I could find the schema for programming was in the 
slides stylesheet directory; so, maybe that is the problem.  If so, where is 
the file that I need?

When I use jing to validate, I get these errors:

/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:913:37:
 error: reference to undefined pattern "db.rep.attribute"
/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:523:37:
 error: reference to undefined pattern "db.package"
/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:58:33:
 error: reference to undefined pattern "db.parameter"
/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:327:44:
 error: reference to undefined pattern "db.choice.opt.attribute"
/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:916:44:
 error: reference to undefined pattern "db.choice.req.attribute"
/Users/gardner/Dropbox/Library/xml/docbook/stylesheets/docbook-xsl-ns-1.78.1/slides/schema/relaxng/programming.rng:133:46:
 error: reference to undefined pattern "db.language.attribute"


My DocBook source is listed below.

Thanks for any help you can provide!!



<book xmlns="http://docbook.org/ns/docbook"; version="5.1" xml:lang="en">
<chapter>
<title>Testing Using Both DocBook Publisher and some Technical Markup</title>

<para>
Hamlet was a good speaker.
Here is an example!
</para>

<drama>
<linegroup>
<speaker>HAMLET</speaker>
<line>To be, or not to be: that is the question:</line>
<line>Whether 'tis nobler in the mind to suffer</line>
<line>The slings and arrows of outrageous fortune,</line>
<line>Or to take arms against a sea of troubles,</line>
<line>And by opposing end them?</line>
</linegroup>
</drama>

<para>
The <classname>Employee</classname> class contains the 
<methodname>increaseSalary</methodname> method.
</para>


</chapter>
</book>

------------------------------------------
Phillip (Phil) E. Gardner
6140 LYNN LAKE DR S APT D
ST PETERSBURG FL 33712-6278
(727) 258-4594   (cell phone)


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org

Reply via email to