You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2002/11/01 05:53:50 UTC

cvs commit: xml-cocoon2/src/webapp/WEB-INF/entities book-v01.rng

crossley    2002/10/31 20:53:50

  Added:       src/webapp/WEB-INF/entities book-v01.rng
  Log:
  Initial RELAX NG grammar for book.xml instances.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/webapp/WEB-INF/entities/book-v01.rng
  
  Index: book-v01.rng
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
           xmlns="http://relaxng.org/ns/structure/1.0"
           xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">
  <!-- ===================================================================
  
       Apache Cocoon Book RELAX NG grammar (Version 0.1)
  
  PURPOSE:
    DRAFT RELAX NG grammar for the Cocoon book.xml configuration files.
  
  NOTES:
  
  AUTHORS:
    David Crossley <cr...@indexgeo.com.au>
  
  FIXME:
  - 
  
  CHANGE HISTORY:
  20021030 V0.1 Initial RELAX NG grammar generated from book-cocoon-v10.dtd
                using DTDinst (DC)
       
  COPYRIGHT:
    Copyright (c) 1999-2002 The Apache Software Foundation.
    
    Permission to copy in any form is granted provided this notice is 
    included in all copies. Permission to redistribute is granted 
    provided this file is distributed untouched in all its parts and 
    included files.
    
  ==================================================================== -->
    <define name="book">
      <element name="book">
        <ref name="attlist.book"/>
        <oneOrMore>
          <ref name="menu"/>
        </oneOrMore>
      </element>
    </define>
    <define name="menu">
      <element name="menu">
        <ref name="attlist.menu"/>
        <zeroOrMore>
          <choice>
            <ref name="menu-item"/>
            <ref name="external"/>
          </choice>
        </zeroOrMore>
      </element>
    </define>
    <define name="menu-item">
      <element name="menu-item">
        <ref name="attlist.menu-item"/>
        <empty/>
      </element>
    </define>
    <define name="external">
      <element name="external">
        <ref name="attlist.external"/>
        <empty/>
      </element>
    </define>
    <define name="attlist.book" combine="interleave">
      <attribute name="software"/>
      <attribute name="title"/>
      <attribute name="copyright"/>
      <empty/>
    </define>
    <define name="attlist.menu" combine="interleave">
      <attribute name="label"/>
    </define>
    <define name="attlist.menu-item" combine="interleave">
      <attribute name="label"/>
      <attribute name="href"/>
      <optional>
        <attribute name="type" a:defaultValue="visible">
          <choice>
            <value>visible</value>
            <value>hidden</value>
          </choice>
        </attribute>
      </optional>
    </define>
    <define name="attlist.external" combine="interleave">
      <attribute name="label"/>
      <attribute name="href"/>
      <optional>
        <attribute name="type" a:defaultValue="visible">
          <choice>
            <value>visible</value>
            <value>hidden</value>
          </choice>
        </attribute>
      </optional>
    </define>
    <start>
      <choice>
        <ref name="book"/>
      </choice>
    </start>
  </grammar>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org