File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libxml2 / test / relaxng / spec.rng
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:37:59 2012 UTC (12 years, 5 months ago) by misho
Branches: libxml2, MAIN
CVS tags: v2_9_1p0, v2_9_1, v2_8_0p0, v2_8_0, v2_7_8, HEAD
libxml2

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Id: spec.rng,v 1.1.1.1 2012/02/21 23:37:59 misho Exp $ -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
          xmlns:p="http://relaxng.org/ns/proofsystem">

<start>
  <grammar>
    <include href="docbook.rng"/>
    <define name="synop.class" combine="choice">
      <choice>
        <parentRef name="rngref"/>
        <parentRef name="grammarref"/>
        <grammar>
          <include href="proofsystem.rng"/>
          <start combine="choice">
            <ref name="formula"/>
          </start>
        </grammar>
      </choice>
    </define>
    <define name="tech.char.class" combine="choice">
      <parentRef name="terms"/>
    </define>
  </grammar>
</start>

<define name="rngref">
  <element name="rngref">
    <attribute name="src">
      <data type="anyURI"/>
    </attribute>
  </element>
</define>

<define name="grammarref">
  <element name="grammarref">
    <attribute name="src">
      <data type="anyURI"/>
    </attribute>
  </element>
</define>

<define name="terms">
  <grammar>
     <include href="proofsystem.rng">
       <start>
         <choice>
           <ref name="expr"/>
           <ref name="judgement"/>
           <ref name="context"/>
         </choice>
       </start>
     </include>
  </grammar>
</define>

</grammar>

 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>