[relaxng-user] customizing docbook-ng
Bruce D'Arcus
bdarcus at fastmail.fm
Wed Aug 18 04:52:01 ICT 2004
What am I doing wrong here with the db.quote customization that is
making nxml tell me it's invalid? I have the same issue with
bibliography, where I can get tag-completion on the element, but then
it's flagged as invalid.
Bruce
namespace db = "http://www.docbook.org/docbook-ng"
default namespace = "http://www.docbook.org/docbook-ng"
include "mods.rnc"
include "docbook-ng.rnc" {
# remove all the main software/technology related definitions
db.domain.inlines = notAllowed
db.product.inlines = notAllowed
db.technical.blocks = notAllowed
db.verbatim.blocks = notAllowed
db.synopsis.blocks = notAllowed
# add a new element to quote
db.quote = element quote { db.quote.attlist, (db.all.inlines |
hb.nonquote)* }
# add mods to bibliography element
db.bibliography = element bibliography {
db.bibliography.attlist,
db.bibliography.info,
db.all.blocks*,
(db.bibliodiv+ | (ModsSchema | db.biblioentry |
db.bibliomixed)+)
}
}
# nonquote pattern allows for semantic rendering of split quotes like:
# "The world," the guy said, "is flat."
hb.nonquote = element nq { empty }
More information about the relaxng-user
mailing list