I searched around a lot and finally found the DocBook source on GitHub. So, I switched to the programming.rnc that is in docbook/relaxng/schemas/docbook.
My customization file is now a .rnc file: namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" default namespace db = "http://docbook.org/ns/docbook" namespace dcmitype = "http://purl.org/dc/dcmitype/" namespace dcterms = "http://purl.org/dc/terms/" namespace html = "http://www.w3.org/1999/xhtml" namespace mml = "http://www.w3.org/1998/Math/MathML" namespace rng = "http://relaxng.org/ns/structure/1.0" namespace s = "http://purl.oclc.org/dsdl/schematron" namespace svg = "http://www.w3.org/2000/svg" namespace xlink = "http://www.w3.org/1999/xlink" include "/Users/gardner/Dropbox/Library/xml/docbook/5.1CR3/rng/publishers.rnc" include "/Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc" but I am still getting the same errors when I try to validate using jing /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:697:35: error: reference to undefined pattern "db.rep.attribute" /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:399:11: error: reference to undefined pattern "db.package" /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:22:4: error: reference to undefined pattern "db.parameter" /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:243:41: error: reference to undefined pattern "db.choice.opt.attribute" /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:698:38: error: reference to undefined pattern "db.choice.req.attribute" /Users/gardner/Dropbox/Library/xml/docbook/GitHub/docbook/relaxng/schemas/docbook/programming.rnc:86:7: error: reference to undefined pattern "db.language.attribute" Any help would be greatly appreciated. Thanks much !!! >> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >> >> [email protected] "Phillip E. Gardner" sent the following >> to [email protected] >> on Friday, February 26, 2016 @ 1:12 PM EST >> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >> > 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: [email protected] > For additional commands, e-mail: [email protected] > > > ------------------------------------------ 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: [email protected] For additional commands, e-mail: [email protected]
