commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sand...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules digester-rules.dtd
Date Tue, 04 Dec 2001 19:49:36 GMT
sanders     01/12/04 11:49:36

  Added:       digester/src/java/org/apache/commons/digester/xmlrules
                        digester-rules.dtd
  Log:
  XML Rules definition
  Graciously submitted by Dave Martin [dmartin@altoweb.com]
  
  Revision  Changes    Path
  1.1                  jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules/digester-rules.dtd
  
  Index: digester-rules.dtd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  
  <!--
          "Digester" component of the Jakarta Commons Subproject
          DTD for the definition of Digester rules in XML.
          $Id: digester-rules.dtd,v 1.1 2001/12/04 19:49:36 sanders Exp $
  -->
  
  <!-- This document type defines an XML format for defining Digester rules.
       Digester is a framework for pattern-matching-based parsing of XML into
       Java objects. See http://jakarta.apache.org/commons/digester.html.  -->
  
  <!ENTITY % rule-elements "call-method-rule | call-param-rule |
                     factory-create-rule | object-create-rule |
                     set-properties-rule | set-property-rule | set-top-rule |
                     set-next-rule" >
  
  <!-- digester-rules is the root element. -->
  <!ELEMENT digester-rules (pattern | include | call-method-rule | call-param-rule | factory-create-rule
| object-create-rule | set-properties-rule | set-property-rule | set-top-rule | set-next-rule
)*>
  
  
  <!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
       rule nested in a pattern element prepends its parent's to its pattern.
       Patterns may be recursively nested.
       Example:
         <pattern value="foo">
            <pattern value="bar">
              <object-create-rule pattern="baz" classname="Fubar" />
            </pattern>
         </pattern>
  
       The above sample fragment defines an ObjectCreateRule associated
       with the pattern "foo/bar/baz".
  
    Note that the use of pattern elements is optional; an alternative is for
    each rule element to contain a 'pattern' attribute.   -->
  <!ELEMENT pattern (pattern | include | call-method-rule | call-param-rule |
                     factory-create-rule | object-create-rule |
                     set-properties-rule | set-property-rule | set-top-rule |
                     set-next-rule )*>
  <!ATTLIST pattern
      value CDATA #REQUIRED>
  
  
  <!--
    <include> allows one set of digester rules to be included inside
    another. The 'path' attribute contains the URI of the document to
    include. Inclusion behaves as if the included rules document is
    'macro-expanded' within the outer document.
    Programmatically initialized rules can be included as well, via the
    'class' attribute. The 'class' attribute should contain the name
    of a class that implements
    org.apache.commons.digester.xmlrules.DigesterRulesSource.
  -->
  <!ELEMENT include EMPTY>
  <!ATTLIST include
      path  CDATA #IMPLIED
      class CDATA #IMPLIED>
  
  
  <!-- Each 'rule' element below corresponds to a concrete subclass
       of org.apache.framework.digester.Rule.
       Each 'rule' element has an optional 'pattern' attribute, which
       defines the pattern for that rule instance. If the rule element
       is nested inside one or more <pattern> elements, those patterns
       will be prepended to the pattern specified in the rule's 'pattern'
       attribute. -->
  
  <!-- CallMethodRule -->
  <!ELEMENT call-method-rule EMPTY>
  <!ATTLIST call-method-rule
      pattern    CDATA #IMPLIED
      methodname CDATA #REQUIRED
      paramcount CDATA #REQUIRED>
  
  <!-- CallParamRule -->
  <!ELEMENT call-param-rule EMPTY>
  <!ATTLIST call-param-rule
      pattern  CDATA #IMPLIED
      paramnumber CDATA #REQUIRED
      attrname CDATA #IMPLIED>
  
  <!-- FactoryCreateRule -->
  <!ELEMENT factory-create-rule EMPTY>
  <!ATTLIST factory-create-rule
      pattern   CDATA #IMPLIED
      classname CDATA #REQUIRED
      attrname  CDATA #IMPLIED>
  
  <!-- ObjectCreateRule -->
  <!ELEMENT object-create-rule EMPTY>
  <!ATTLIST object-create-rule
      pattern   CDATA #IMPLIED
      classname CDATA #REQUIRED
      attrname  CDATA #IMPLIED>
  
  <!-- SetPropertiesRule -->
  <!ELEMENT set-properties-rule EMPTY>
  <!ATTLIST factory-create-rule
      pattern   CDATA #IMPLIED>
  
  <!-- SetPropertyRule -->
  <!ELEMENT set-property-rule EMPTY>
  <!ATTLIST set-property-rule
      pattern   CDATA #IMPLIED
      name      CDATA #IMPLIED
      value     CDATA #IMPLIED>
  
  <!-- SetTopRule -->
  <!ELEMENT set-top-rule EMPTY>
  <!ATTLIST set-top-rule
      pattern    CDATA #IMPLIED
      methodname CDATA #REQUIRED
      paramtype  CDATA #IMPLIED>
  
  <!-- SetNextRule -->
  <!ELEMENT set-next-rule EMPTY>
  <!ATTLIST set-next-rule
      pattern    CDATA #IMPLIED
      methodname CDATA #REQUIRED
      paramtype  CDATA #IMPLIED>
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message