Ignore:
Timestamp:
Feb 27, 2011, 4:05:52 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
d17cfb8
Parents:
eef46e9
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/schema/clfs/0.1/rng/clfs.rnc

    reef46e9 r4fe47e3  
    11
    2 include "../../../docbook/4.5/rng/docbook.rnc"
     2namespace c = "http://schema.cross-lfs.org/book"
    33
     4# We are building around the DocBook Schema
     5include "../../../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
     21local.effectivity.attrib &=
     22  clfs.attrib.arch,
     23  clfs.attrib.bits,
     24  clfs.attrib.multilib
     25
     26# Custom attributes unsed in this schema
     27clfs.attrib.arch = attribute c:arch { text }?
     28clfs.attrib.bits = attribute c:bits { text }?
     29clfs.attrib.multilib = attribute c:multilib { "true" | "false" }?
     30clfs.attrib.multibuild = attribute c:multibuild { "true" | "false" }
     31
     32# Package element to be used inside of the chapter element
     33clfs.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
     44clfs.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.