You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2003/05/05 14:49:59 UTC

cvs commit: xml-forrest/src/resources/schema/dtd/v20a document-v20.dtd document-v20.mod

jefft       2003/05/05 05:49:59

  Modified:    src/resources/schema catalog catalog.xcat
  Added:       src/resources/schema/dtd/v20a document-v20.dtd
                        document-v20.mod
  Log:
  Kick off the v2.x DTD series.
  This DTD is currently just v12 with a <meta> tag from XHTML 2 added.
  
  Revision  Changes    Path
  1.18      +6 -0      xml-forrest/src/resources/schema/catalog
  
  Index: catalog
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/catalog,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- catalog	5 May 2003 10:39:31 -0000	1.17
  +++ catalog	5 May 2003 12:49:59 -0000	1.18
  @@ -18,6 +18,12 @@
   PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
          "dtd/tab-cocoon-v10.dtd"
   
  +-- New unfinished DTDs --
  +PUBLIC "-//APACHE//DTD Documentation V2.0a//EN"
  +       "dtd/v20a/document-v20.dtd"
  +PUBLIC "-//APACHE//ENTITIES Documentation V2.0a//EN"
  +       "dtd/v20a/document-v20.mod"
  +
   -- Old DTDs --
   PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
          "dtd/document-v11.dtd"
  
  
  
  1.16      +6 -0      xml-forrest/src/resources/schema/catalog.xcat
  
  Index: catalog.xcat
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/catalog.xcat,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- catalog.xcat	24 Apr 2003 21:06:20 -0000	1.15
  +++ catalog.xcat	5 May 2003 12:49:59 -0000	1.16
  @@ -18,6 +18,12 @@
   <public publicId="-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
           uri="dtd/tab-cocoon-v10.dtd"/>
   
  +<!-- New unfinished DTDs -->
  +<public publicId="-//APACHE//DTD Documentation V2.0a//EN"
  +        uri="dtd/v20a/document-v20.dtd"/>
  +<public publicId="-//APACHE//ENTITIES Documentation V2.0a//EN"
  +        uri="dtd/v20a/document-v20.mod"/>
  +
   <!-- Old DTDs -->
   <public publicId="-//APACHE//DTD Documentation V1.1//EN"
           uri="dtd/document-v11.dtd"/>
  
  
  
  1.1                  xml-forrest/src/resources/schema/dtd/v20a/document-v20.dtd
  
  Index: document-v20.dtd
  ===================================================================
  <!-- ===================================================================
  
       Apache Documentation DTD (Version 2.0)
  
  PURPOSE:
    This DTD was developed to create a simple yet powerful document
    type for software documentation for use with the Apache projects.
    It is an XML-compliant DTD and it's maintained by the Apache XML
    project.
    
    The v2.x series of this DTD is an evolution of the 1.x series, incorporating
    lessons learned. Various new much-needed elements have been added, some unused
    features removed, and some renamed (link -> a). 2.x is not
    backwards-compatible, although a stylesheet can probably do the conversion.
  
  TYPICAL INVOCATION:
  
    <!DOCTYPE document PUBLIC
         "-//APACHE//DTD Documentation V2.1a//EN"
         "document-vxy.dtd">
  
    where
  
      x := major version
      y := minor version
  
  NOTES:
    Many of the design patterns used in this DTD were take from the
    W3C XML Specification DTD edited by Eve Maler <el...@arbortext.com>.
  
    Where possible, great care has been used to reuse HTML tag
    names to reduce learning efforts and to allow HTML editors to be
    used for complex authorings like tables and lists.
  
  EXTENSIBILITY:
    This DTD includes several empty placeholders that can be used to
    extend it. These placeholders are implemented with empty entities. Here
    is the list of those empty entities and what they are used for:
  
      - local.inline: this entity should contain extended definitions of
                      elements that can be used 'inline', or directly inside
                      the content. An example for this entity could be
  
                          <!ENTITY % local.inline "|citation">
  
      - local.blocks: this entity should contain extended definitions of
                      elements that behave as 'blocks', thus can be visually
                      rendered as areas on the canvas. An example for this
                      entity could be:
  
                          <!ENTITY % local.blocks "|poem">
  
      - local.sections: this entity should contain extended definitions of
                        elements that behave as 'sections', thus can be considered
                        containers of block-level elements. An example for
                        this entity could be:
  
                          <!ENTITY % local.sections "|chapter">
  
      - local.headers: this entity should contain extended definitions of
                       elements that behave as parts of the document header.
                       An example for this header could be:
  
                          <!ENTITY % local.headers ", notes?">
  
      - local.footers: this entity should contain extended definitions of
                       elements that behave as parts of the document footer.
                       An example for this header could be:
  
                          <!ENTITY % local.footers ", annotations*">
  
  
  AUTHORS:
    Stefano Mazzocchi <st...@apache.org>
    Steven Noels <st...@outerthought.org>
    Jeff Turner <je...@apache.org>
  
  COPYRIGHT:
    Copyright (c) 2003 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.
  
  ==================================================================== -->
  
  
  <!-- =============================================================== -->
  <!-- Include the Common ISO Character Entity Sets -->
  <!-- =============================================================== -->
  
  <!ENTITY % common-charents PUBLIC
      "-//APACHE//ENTITIES Common Character Entity Sets V1.0//EN"
      "../common-charents-v10.mod">
  %common-charents;
  
  <!-- =============================================================== -->
  <!-- Document -->
  <!-- =============================================================== -->
  
  <!ENTITY % document PUBLIC
      "-//APACHE//ENTITIES Documentation V2.0a//EN"
      "document-v20.mod">
  %document;
  
  <!-- =============================================================== -->
  <!-- End of DTD -->
  <!-- =============================================================== -->
  
  
  
  1.1                  xml-forrest/src/resources/schema/dtd/v20a/document-v20.mod
  
  Index: document-v20.mod
  ===================================================================
  <!-- ===================================================================
  
       Apache Common Documentation elements (Version 2.0a)
  
  PURPOSE:
    This DTD was developed to create a simple yet powerful document
    type for software documentation for use with the Apache projects.
  
  TYPICAL INVOCATION:
  
    <!ENTITY % document PUBLIC
        "-//APACHE//ENTITIES Documentation Vxy//EN"
        "document-vxy.mod">
    %document;
  
    where
  
      x := major version
      y := minor version
  
  NOTES:
  
  AUTHORS:
    Stefano Mazzocchi <st...@apache.org>
    Steven Noels <st...@apache.org>
    Jeff Turner <je...@apache.org>
  
  FIXME:
  
  CHANGE HISTORY:
  [Version 2.0a]
    20030505  Add a meta element to the header, for generic metadata (JT)
  
  
  COPYRIGHT:
    Copyright (c) 2003 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.
  
  ==================================================================== -->
  <!-- =============================================================== -->
  <!-- Useful entities for increased DTD readability -->
  <!-- =============================================================== -->
  <!ENTITY % text "#PCDATA">
  <!-- Entities referred to later on are defined up front -->
  <!ENTITY % markup "strong|em|code|sub|sup">
  <!ENTITY % special-inline "br|img|icon|acronym">
  <!ENTITY % links "link|jump|fork">
  <!ENTITY % paragraphs "p|source|note|warning|fixme">
  <!ENTITY % tables "table">
  <!ENTITY % lists "ol|ul|dl">
  <!ENTITY % special-blocks "figure|anchor">
  <!-- =============================================================== -->
  <!-- Entities for general XML compliance -->
  <!-- =============================================================== -->
  <!-- Common attributes
          Every element has an ID attribute (sometimes required,
          but usually optional) for links. %common.att;
          is for common attributes where the ID is optional, and
          %common-idreq.att; is for common attributes where the
          ID is required.
  -->
  <!ENTITY % common.att 'id                     ID              #IMPLIED
           xml:lang               NMTOKEN         #IMPLIED'>
  <!ENTITY % common-idreq.att 'id                     ID              #REQUIRED
           xml:lang               NMTOKEN         #IMPLIED'>
  <!-- xml:space attribute ===============================================
          Indicates that the element contains white space
          that the formatter or other application should retain,
          as appropriate to its function.
  ==================================================================== -->
  <!ENTITY % xmlspace.att 'xml:space (default|preserve) #FIXED "preserve"'>
  <!-- def attribute =====================================================
          Points to the element where the relevant definition can be
          found, using the IDREF mechanism.  %def.att; is for optional
          def attributes, and %def-req.att; is for required def
          attributes.
  ==================================================================== -->
  <!ENTITY % def.att 'def                    IDREF           #IMPLIED'>
  <!ENTITY % def-req.att 'def                    IDREF           #REQUIRED'>
  <!-- ref attribute =====================================================
          Points to the element where more information can be found,
          using the IDREF mechanism.  %ref.att; is for optional
          ref attributes, and %ref-req.att; is for required ref
          attributes.
  ================================================================== -->
  <!ENTITY % ref.att 'ref                    IDREF           #IMPLIED'>
  <!ENTITY % ref-req.att 'ref                    IDREF           #REQUIRED'>
  <!-- =============================================================== -->
  <!-- Entities for general usage -->
  <!-- =============================================================== -->
  <!-- Key attribute =====================================================
          Optionally provides a sorting or indexing key, for cases when
          the element content is inappropriate for this purpose.
  ==================================================================== -->
  <!ENTITY % key.att 'key                    CDATA           #IMPLIED'>
  <!-- Title attributes ==================================================
          Indicates that the element requires to have a title attribute.
  ==================================================================== -->
  <!ENTITY % title.att 'title                  CDATA           #REQUIRED'>
  <!-- Name attributes ==================================================
          Indicates that the element requires to have a name attribute.
  ==================================================================== -->
  <!ENTITY % name.att 'name                   CDATA           #REQUIRED'>
  <!-- Email attributes ==================================================
          Indicates that the element requires to have an email attribute.
  ==================================================================== -->
  <!ENTITY % email.att 'email                  CDATA           #REQUIRED'>
  <!-- Link attributes ===================================================
          Indicates that the element requires to have hyperlink attributes.
  ==================================================================== -->
  <!ENTITY % link.att 'href      CDATA             #REQUIRED
           role      CDATA                         #IMPLIED
           title     CDATA                         #IMPLIED '>
  <!-- =============================================================== -->
  <!-- General definitions -->
  <!-- =============================================================== -->
  <!-- A person is a general unparsed human entity -->
  <!ELEMENT person EMPTY>
  <!ATTLIST person
    %common.att; 
    %name.att; 
    %email.att; 
  >
  <!-- =============================================================== -->
  <!-- Content definitions -->
  <!-- =============================================================== -->
  <!ENTITY % local.inline "">
  <!ENTITY % link-content.mix "%text;|%markup;|%special-inline; %local.inline;">
  <!ENTITY % content.mix "%link-content.mix;|%links;">
  <!-- ==================================================== -->
  <!-- Phrase Markup -->
  <!-- ==================================================== -->
  <!-- Strong (typically bold) -->
  <!ELEMENT strong (%content.mix;)*>
  <!ATTLIST strong
    %common.att; 
  >
  <!-- Emphasis (typically italic) -->
  <!ELEMENT em (%content.mix;)*>
  <!ATTLIST em
    %common.att; 
  >
  <!-- Code (typically monospaced) -->
  <!ELEMENT code (%text;)>
  <!ATTLIST code
    %common.att; 
  >
  <!-- Superscript (typically smaller and higher) -->
  <!ELEMENT sup (%text;)>
  <!ATTLIST sup
    %common.att; 
  >
  <!-- Subscript (typically smaller and lower) -->
  <!ELEMENT sub (%text;)>
  <!ATTLIST sub
    %common.att; 
  >
  <!-- ==================================================== -->
  <!-- Hypertextual Links -->
  <!-- ==================================================== -->
  <!-- hyperlink (equivalent of <a ...>) -->
  <!ELEMENT link (%link-content.mix;)*>
  <!ATTLIST link
    %common.att; 
    %link.att; 
  >
  <!-- windows-replacing link (equivalent of <a ... target="_top">) -->
  <!ELEMENT jump (%link-content.mix;)*>
  <!ATTLIST jump
    %common.att; 
    %link.att; 
  >
  <!-- window-forking link (equivalent of <a ... target="_blank">) -->
  <!ELEMENT fork (%link-content.mix;)*>
  <!ATTLIST fork
    %common.att; 
    %link.att; 
  >
  
  <!-- ==================================================== -->
  <!-- Specials -->
  <!-- ==================================================== -->
  <!-- Breakline Object (typically forces line break) -->
  <!ELEMENT br EMPTY>
  <!ATTLIST br
    %common.att; 
  >
  <!-- Image Object (typically an inlined image) -->
  <!ELEMENT img EMPTY>
  <!ATTLIST img
    src CDATA #REQUIRED
    alt CDATA #REQUIRED
    height CDATA #IMPLIED
    width CDATA #IMPLIED
    usemap CDATA #IMPLIED
    ismap (ismap) #IMPLIED
    %common.att; 
  >
  <!-- Image Icon (typically an inlined image placed as graphical item) -->
  <!ELEMENT icon EMPTY>
  <!ATTLIST icon
    src CDATA #REQUIRED
    alt CDATA #REQUIRED
    height CDATA #IMPLIED
    width CDATA #IMPLIED
    %common.att; 
  >
  <!-- Acronym (in modern browsers, will have rollover text) -->
  <!ELEMENT acronym (%text;)*>
  <!ATTLIST acronym
    title CDATA #REQUIRED
    %common.att; 
  >
  
  <!-- =============================================================== -->
  <!-- Blocks definitions -->
  <!-- =============================================================== -->
  <!ENTITY % local.blocks "">
  <!ENTITY % blocks "%paragraphs;|%tables;|%lists;|%special-blocks; %local.blocks;">
  
  <!-- Flow mixes block and inline -->
  <!ENTITY % flow "%content.mix;|%blocks;">
  
  <!-- ==================================================== -->
  <!-- Paragraphs -->
  <!-- ==================================================== -->
  <!-- Text Paragraph (normally vertically space delimited. Space can be preserved.) -->
  <!ELEMENT p (%content.mix;)*>
  <!ATTLIST p
    %common.att; 
    xml:space (default|preserve) #IMPLIED
  >
  <!-- Source Paragraph (normally space is preserved) -->
  <!ELEMENT source (%content.mix;)*>
  <!ATTLIST source
    %common.att; 
    %xmlspace.att; 
  >
  <!-- Note Paragraph (normally shown encapsulated) -->
  <!ELEMENT note (%content.mix;)*>
  <!ATTLIST note
    %common.att; 
  >
  <!-- Warning Paragraph (normally shown with eye-catching colors) -->
  <!ELEMENT warning (%content.mix;)*>
  <!ATTLIST warning
    %common.att; 
  >
  <!-- Fixme Paragraph (normally not shown) -->
  <!ELEMENT fixme (%content.mix;)*>
  <!ATTLIST fixme
    author CDATA #REQUIRED
    %common.att; 
  >
  <!-- ==================================================== -->
  <!-- Tables -->
  <!-- ==================================================== -->
  <!-- Attributes that indicate the spanning of the table cell -->
  <!ENTITY % cell.span 'colspan CDATA "1"
           rowspan CDATA "1"'>
  <!-- Table element -->
  <!ELEMENT table (caption?, tr+)>
  <!ATTLIST table
    %common.att; 
  >
  <!-- The table title -->
  <!ELEMENT caption (%content.mix;)*>
  <!ATTLIST caption
    %common.att; 
  >
  <!-- The table row element -->
  <!ELEMENT tr (th | td)+>
  <!ATTLIST tr
    %common.att; 
  >
  <!-- The table row header element -->
  <!ELEMENT th (%flow;)*>
  <!ATTLIST th
    %common.att; 
    %cell.span; 
  >
  <!-- The table row description element -->
  <!ELEMENT td (%flow;)*>
  <!ATTLIST td
    %common.att; 
    %cell.span; 
  >
  <!-- ==================================================== -->
  <!-- Lists -->
  <!-- ==================================================== -->
  <!-- List item -->
  <!ELEMENT li (%flow;)*>
  <!ATTLIST li
    %common.att; 
  >
  <!-- Unordered list (typically bulleted) -->
  <!ELEMENT ul (li | %lists;)+>
  <!--    spacing attribute:
              Use "normal" to get normal vertical spacing for items;
              use "compact" to get less spacing.  The default is dependent
              on the stylesheet. -->
  <!ATTLIST ul
    %common.att; 
    spacing (normal | compact) #IMPLIED
  >
  <!-- Ordered list (typically numbered) -->
  <!ELEMENT ol (li | %lists;)+>
  <!--    spacing attribute:
              Use "normal" to get normal vertical spacing for items;
              use "compact" to get less spacing.  The default is dependent
              on the stylesheet. -->
  <!ATTLIST ol
    %common.att; 
    spacing (normal | compact) #IMPLIED
  >
  <!-- Definition list (typically two-column) -->
  <!ELEMENT dl (dt, dd)+>
  <!ATTLIST dl
    %common.att; 
  >
  <!-- Definition term -->
  <!ELEMENT dt (%content.mix;)*>
  <!ATTLIST dt
    %common.att; 
  >
  <!-- Definition description -->
  <!ELEMENT dd (%flow; )*>
  <!ATTLIST dd
    %common.att; 
  >
  <!-- ==================================================== -->
  <!-- Special Blocks -->
  <!-- ==================================================== -->
  <!-- Image Block (typically a separated and centered image) -->
  <!ELEMENT figure EMPTY>
  <!ATTLIST figure
    src CDATA #REQUIRED
    alt CDATA #REQUIRED
    height CDATA #IMPLIED
    width CDATA #IMPLIED
    usemap CDATA #IMPLIED
    ismap (ismap) #IMPLIED
    align CDATA #IMPLIED
    %common.att; 
  >
  <!-- anchor point (equivalent of <a name="...">, typically not rendered) -->
  <!ELEMENT anchor EMPTY>
  <!ATTLIST anchor
    %common-idreq.att; 
  >
  <!-- =============================================================== -->
  <!-- Document -->
  <!-- =============================================================== -->
  <!ELEMENT document (header, body, footer?)>
  <!ATTLIST document
    %common.att; 
  >
  <!-- ==================================================== -->
  <!-- Header -->
  <!-- ==================================================== -->
  <!ENTITY % local.headers "">
  <!ELEMENT header (title, subtitle?, version?, type?, authors?,
                        notice*, abstract?, meta* %local.headers;)>
  <!ATTLIST header
    %common.att; 
  >
  <!ELEMENT title (%text; | %markup; | %links; | %special-inline;)*>
  <!ATTLIST title
    %common.att; 
  >
  <!ELEMENT subtitle (%text; | %markup;)*>
  <!ATTLIST subtitle
    %common.att; 
  >
  <!ELEMENT version (%text;)>
  <!ATTLIST version
    %common.att;
    major CDATA #IMPLIED
    minor CDATA #IMPLIED
    fix CDATA #IMPLIED
    tag CDATA #IMPLIED
  >
  <!ELEMENT type (%text;)>
  <!ATTLIST type
    %common.att; 
  >
  <!ELEMENT authors (person+)>
  <!ATTLIST authors
    %common.att; 
  >
  <!ELEMENT notice (%content.mix;)*>
  <!ATTLIST notice
    %common.att; 
  >
  <!ELEMENT abstract (%content.mix;)*>
  <!ATTLIST abstract
    %common.att; 
  >
  <!-- See http://www.w3.org/TR/xhtml2/mod-meta.html#s_metamodule -->
  <!ELEMENT meta (#PCDATA)>
  <!ATTLIST meta
    name NMTOKEN #REQUIRED
    %common.att; 
  >
  
  <!-- ==================================================== -->
  <!-- Body -->
  <!-- ==================================================== -->
  <!ENTITY % local.sections "">
  <!ENTITY % sections "section %local.sections;">
  <!ELEMENT body (%sections; | %blocks;)+>
  <!ATTLIST body
    %common.att; 
  >
  <!ELEMENT section (title, (%sections; | %blocks;)*)>
  <!ATTLIST section
    %common.att; 
  >
  <!-- ==================================================== -->
  <!-- Footer -->
  <!-- ==================================================== -->
  <!ENTITY % local.footers "">
  <!ELEMENT footer (legal %local.footers;)>
  <!ELEMENT legal (%content.mix;)*>
  <!ATTLIST legal
    %common.att; 
  >
  <!-- =============================================================== -->
  <!-- End of DTD -->
  <!-- =============================================================== -->