Annotation of loncom/build/xfml.dtd, revision 1.2

1.1       harris41    1: <!--
                      2:        XML Filter Markup Language version 1.0.
                      3: 
                      4:        Date: January 27, 2002
                      5:        Author: Scott Harrison
                      6: 
                      7:        XML Filter Markup Language works to extract those sections
                      8:        of an XML document matching certain conditions.  This, in some
                      9:        respects, relies on functionality similar to that expected
                     10:        with XSL-type files.  (I do not use standard XSL syntax because
                     11:        I am not convinced that it would be simple and elegant for
                     12:        this particular task).
                     13: 
                     14:        This is anticipated to be a very important feature associated
                     15:        with a larger Makefile-ish type approach involving the XML dtds:
                     16:        LPML and PIML.
                     17:        LPML (Linux Packaging Markup Language) can work to install files
                     18:        on a single computer or a distributed network of computers with
                     19:        pre-configured ssh accessibility (.ssh/authorized_keys, etc).
                     20:        PIML (Post Installation Markup Language) works to coordinate the
                     21:        last little scripts that need to be run after an installation.
                     22:        With all this make-"power", wouldn't it be nice to only pass through
                     23:        portions of an LPML specification?
                     24: 
                     25: -->
                     26: <!--
                     27: 
                     28: Copyright Michigan State University Board of Trustees
                     29: 
                     30: This file is part of the LearningOnline Network with CAPA (LON-CAPA).
                     31: 
                     32: LON-CAPA is free software; you can redistribute it and/or modify
                     33: it under the terms of the GNU General Public License as published by
                     34: the Free Software Foundation; either version 2 of the License, or
                     35: (at your option) any later version.
                     36: 
                     37: LON-CAPA is distributed in the hope that it will be useful,
                     38: but WITHOUT ANY WARRANTY; without even the implied warranty of
                     39: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     40: GNU General Public License for more details.
                     41: 
                     42: You should have received a copy of the GNU General Public License
                     43: along with LON-CAPA; if not, write to the Free Software
                     44: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                     45: 
                     46: /home/httpd/html/adm/gpl.txt
                     47: 
                     48: http://www.lon-capa.org/
                     49: 
                     50: -->
                     51: 
                     52: <!-- Note: current status is that choice:include is currently unsupported and
                     53:      all matching statements REQUIRE two levels of 'when' statements;
                     54:      not one or more than two...  okay.. this will be fixed soon -->
                     55: 
                     56: <!ENTITY % xfml.Version
                     57:         "-//TUX//DTD piml 1.0 Final//EN"
                     58: 
                     59:         -- Typical usage:
                     60: 
                     61:             <!DOCTYPE xfml PUBLIC "-//TUX//DTD PIML 1.0 Final//EN">
                     62:             <xfml>
                     63: 
                     64:             </xfml>
                     65:         --
                     66:         >
                     67: 
                     68: <!ELEMENT when:name (#PCDATA)>
                     69: <!ELEMENT when:attribute (#PCDATA)>
                     70: <!ELEMENT when:cdata (#PCDATA)>
                     71: <!ELEMENT choice:include (#CDATA)>
                     72: <!ELEMENT choice:exclude (#CDATA)>
                     73: 
1.2     ! harris41   74: <!ELEMENT xfml (clause)+>
        !            75: <!ELEMENT clause (when:cdata|when:name|when:attribute)+>
1.1       harris41   76: <!ELEMENT when:name
                     77:  (when:cdata|when:name|when:attribute|choice:include|choice:exclude)+>
                     78: <!ELEMENT when:attribute 
                     79:   (when:cdata|when:name|when:attribute|choice:include|
                     80:   choice:exclude)+>
                     81: <!ELEMENT when:cdata 
                     82:   (when:cdata|when:name|when:attribute|choice:include|
                     83:   choice:exclude)+>
                     84: 
                     85: <!ATTLIST when:name
                     86:     match CDATA #REQUIRED>
                     87: <!ATTLIST when:attribute
                     88:     match CDATA #REQUIRED>
                     89: <!ATTLIST when:cdata
                     90:     match CDATA #REQUIRED>
                     91: <!ATTLIST choice:include
                     92:     nodename CDATA #REQUIRED>
                     93: <!ATTLIST choice:exclude
                     94:     nodename CDATA #REQUIRED>

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