Last change
on this file since 441840b was 4fe47e3, checked in by Joe Ciccone <jciccone@…>, 14 years ago |
Add the initial changes for a new xml format for the packages part
of the book. This is still preliminary and currently is pretty
broken, more to come in the future as bugs get squashed.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[eef46e9] | 1 |
|
---|
[4fe47e3] | 2 | namespace c = "http://schema.cross-lfs.org/book"
|
---|
[eef46e9] | 3 |
|
---|
[4fe47e3] | 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
TracBrowser
for help on using the repository browser.