default namespace = "http://docbook.org/ns/docbook" namespace db = "http://docbook.org/ns/docbook" namespace r = "http://nwalsh.com/xmlns/schema-remap/" # new element for CPU registers db.register = [ r:remap [ db:emphasis [ role = "bold" ] ] ] element register { text } # new element for instructions db.instruction = [ r:remap [ db:code [ ] ] ] element instruction { text } # combined pattern asm.inlines = db.register | db.instruction include "file:///e:/src/db/docbook/relaxng/docbook/docbook.rnc" { # register and instruction are permitted everywhere in inline content db.general.inlines |= asm.inlines }