Ignore:
Timestamp:
Apr 23, 2011, 2:45:35 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
d10f81a
Parents:
5f27dfa
Message:

This is the first part of the 2nd format to use as a simplification.
This format proposes using a completely custom stylesheet. Instead
of trying to merge together with docbook. The first attempt works it
is just extremely problematic. This is much easier, and it is the goal
anyway.

File:
1 edited

Legend:

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

    r5f27dfa r5c560cb  
    1313       | refentry.class+
    1414       | sect2+
    15          | simplesect+),
    16     nav.class*
    17     } | clfs.sect1.package )
     15       | simplesect+),
     16      nav.class*
     17    } | clfs.sect.package )
    1818}
    1919
     
    2424  clfs.attrib.multilib
    2525
    26 # Custom attributes unsed in this schema
     26# Profiling Attributes
    2727clfs.attrib.arch = attribute c:arch { text }?
    2828clfs.attrib.bits = attribute c:bits { text }?
    2929clfs.attrib.multilib = attribute c:multilib { "true" | "false" }?
    30 clfs.attrib.multibuild = attribute c:multibuild { "true" | "false" }
    3130
    32 # Package element to be used inside of the chapter element
    33 clfs.sect1.package =
     31# Inline Elements
     32
     33clfs.inline =
     34  (clfs.inline.strong |
     35   clfs.inline.dirname |
     36   clfs.inline.filename |
     37   clfs.inline.command |
     38   text)+
     39
     40clfs.inline.strong =
     41  element c:strong {
     42    clfs.inline
     43  }
     44clfs.inline.dirname =
     45  element c:dirname {
     46    clfs.inline
     47  }
     48clfs.inline.filename =
     49  element c:filename {
     50    clfs.inline
     51  }
     52clfs.inline.command =
     53  element c:command {
     54    clfs.inline
     55  }
     56
     57# Block Elements
     58
     59clfs.block.para =
     60  element c:para {
     61    clfs.inline
     62  }
     63 
     64clfs.block.note =
     65  element c:note {
     66    clfs.block.para*
     67  }
     68
     69clfs.block.command =
     70  element c:command {
     71    clfs.attrib.arch,
     72    clfs.attrib.bits,
     73    clfs.attrib.multilib,
     74    attribute c:nodump {
     75      "true" | "false"
     76    }?,
     77    (element c:literal { text } | text)+
     78  }
     79
     80# The Package
     81clfs.sect.package =
    3482  element c:package {
    3583    attribute id { text },
     
    3785    clfs.attrib.bits,
    3886    clfs.attrib.multilib,
    39     clfs.attrib.multibuild,
    40     sect1
     87    attribute c:multibuild {
     88      "true" | "false"
     89    },
     90   
     91    element c:title { text },
     92    element c:version { text },
     93    element c:description { clfs.inline },
     94   
     95    element c:install {
     96      (clfs.block.para |
     97       clfs.block.command |
     98       clfs.block.note)+
     99    }+
    41100  }
    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.