diff options
Diffstat (limited to 'share/xml/freebsd50.rnc')
-rw-r--r-- | share/xml/freebsd50.rnc | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/share/xml/freebsd50.rnc b/share/xml/freebsd50.rnc new file mode 100644 index 0000000000..a240d0317a --- /dev/null +++ b/share/xml/freebsd50.rnc @@ -0,0 +1,69 @@ +default namespace db = "http://docbook.org/ns/docbook" + +# $FreeBSD$ + +# ====================================================================== + +include "/usr/local/share/xml/docbook/5.0/rng/docbook.rnc" inherit = db { + + # XXX: trademark not allowed in lineannotation in normal DocBook 5.0 + db.lineannotation = + element lineannotation { db.lineannotation.attlist, (db._text | db.trademark)* } + + # XXX: trademark not allowed in application in normal DocBook 5.0 + db.application = + element application { db.application.attlist, (db._text | db.trademark)* } + + # XXX: trademark not allowed in contrib in normal DocBook 5.0 + db.contrib = + element contrib { db.contrib.attlist, (db._text | db.trademark)* } + + # XXX: email not allowed in attribution in normal DocBook 5.0 + db.attribution = + element attribution { + db.attribution.attlist, + (db._text + | db.person + | db.personname + | db.citetitle + | db.citation + | db.email )* + } + + # XXX: DocBook 5.0 disallows mixing CDATA and itemizedlist + db.entry = + element entry { + db.entry.attlist, (db.all.inlines|db.all.blocks)* + } + + # FreeBSD extension: add buildtarget element to allowed inlines + db.extension.inlines = db.buildtarget + | db.revnumber +# | db.trademark + + + # FreeBSD extension: edition and releasetype profiling attributes + db.effectivity.attributes = + db.arch.attribute? + & db.audience.attribute? + & db.condition.attribute? + & db.conformance.attribute? + & db.os.attribute? + & db.revision.attribute? + & db.security.attribute? + & db.userlevel.attribute? + & db.vendor.attribute? + & db.wordsize.attribute? + & db.edition.attribute? + & db.releasetype.attribute? +} + +# FreeBSD extension: buildtarget for make targets +db.buildtarget = element buildtarget { (text | db.replaceable)* } + +# FreeBSD extension: profiling attribute for edition (online, print) +db.edition.attribute = attribute edition { text } + +# FreeBSD extension: profiling attribute for release type (release, +# current, snapshot) +db.releasetype.attribute = attribute releasetype { text } |