Changeset 4fe47e3 for BOOK/schema/clfs/0.1/rng/clfs.rnc
- Timestamp:
- Feb 27, 2011, 4:05:52 PM (14 years ago)
- Children:
- d17cfb8
- Parents:
- eef46e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/schema/clfs/0.1/rng/clfs.rnc
reef46e9 r4fe47e3 1 1 2 include "../../../docbook/4.5/rng/docbook.rnc"2 namespace c = "http://schema.cross-lfs.org/book" 3 3 4 # We are building around the DocBook Schema 5 include "../../../docbook/4.5/rng/docbook.rnc" { 6 sect1 = ( 7 element sect1 { 8 sect1.attlist, 9 sect1info?, 10 sect.title.content, 11 nav.class*, 12 ((divcomponent.mix+, (refentry.class* | sect2* | simplesect*)) 13 | refentry.class+ 14 | sect2+ 15 | simplesect+), 16 nav.class* 17 } | clfs.sect1.package ) 18 } 19 20 # Extend the standard profiling attributes 21 local.effectivity.attrib &= 22 clfs.attrib.arch, 23 clfs.attrib.bits, 24 clfs.attrib.multilib 25 26 # Custom attributes unsed in this schema 27 clfs.attrib.arch = attribute c:arch { text }? 28 clfs.attrib.bits = attribute c:bits { text }? 29 clfs.attrib.multilib = attribute c:multilib { "true" | "false" }? 30 clfs.attrib.multibuild = attribute c:multibuild { "true" | "false" } 31 32 # Package element to be used inside of the chapter element 33 clfs.sect1.package = 34 element c:package { 35 attribute id { text }, 36 clfs.attrib.arch, 37 clfs.attrib.bits, 38 clfs.attrib.multilib, 39 clfs.attrib.multibuild, 40 sect1 41 } 42 43 # Switch case to be used inside of a sect1 44 clfs.sect1.switch = 45 element c:switch { 46 element c:case { 47 clfs.attrib.arch, 48 clfs.attrib.bits, 49 clfs.attrib.multilib 50 }*, 51 element c:default { 52 empty 53 } 54 }
Note:
See TracChangeset
for help on using the changeset viewer.