You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ecs-dev@jakarta.apache.org by rd...@apache.org on 2001/06/27 22:14:05 UTC

cvs commit: jakarta-ecs/src/java/org/apache/ecs Doctype.java

rdonkin     01/06/27 13:14:05

  Modified:    src/java/org/apache/ecs Doctype.java
  Log:
  Added  Doctype support for DTD HTML 4.01 (Yuji Kumasaka <ku...@mms.intec.co.jp>)
  
  Revision  Changes    Path
  1.5       +58 -1     jakarta-ecs/src/java/org/apache/ecs/Doctype.java
  
  Index: Doctype.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ecs/src/java/org/apache/ecs/Doctype.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Doctype.java	2000/11/28 17:34:49	1.4
  +++ Doctype.java	2001/06/27 20:14:02	1.5
  @@ -76,12 +76,13 @@
    *  @see Doctype.XHtml10Transitional
    *  @see Doctype.XHtml10Frameset
    *        
  - *  @version $Id: Doctype.java,v 1.4 2000/11/28 17:34:49 jstoor Exp $
  + *  @version $Id: Doctype.java,v 1.5 2001/06/27 20:14:02 rdonkin Exp $
    *  @author <a href="mailto:heuermh@shore.net">Michael Heuer</a>
    *  @author <a href="mailto:snagy@servletapi.com">Stephan Nagy</a>
    *  @author <a href="mailto:jon@clearink.com">Jon S. Stevens</a>
    *  @author <a href="mailto:brucedu@netscape.net">Bruce Durling</a>
    *  @author <a href="mailto:bojan@binarix.com">Bojan Smojver</a>
  + *  @author Yuji Kumasaka
   */
   public class Doctype extends SinglePartElement implements Printable 
   {
  @@ -318,6 +319,62 @@
               this.visibility = PUBLIC;
               this.identifier = "\"-//W3C//DTD HTML 4.0 Frameset//EN\"";
               this.uri = "\"http://www.w3.org/TR/REC-html40/frameset.dtd\"";
  +            this.updateElementType();
  +        }
  +    }
  +
  +    /**
  +     * The HTML 4.01 Strict DTD includes all elements and attributes
  +     * that have not been deprecated or do not appear in frameset
  +     * documents.
  +     * <p>
  +     * See: <a href="http://www.w3.org/TR/html4/">
  +     * http://www.w3.org/TR/html4/</a>
  +     */
  +    public static class Html401Strict extends Doctype {
  +
  +        public Html401Strict() {
  +            this.name = "HTML";
  +            this.visibility = PUBLIC;
  +            this.identifier = "\"-//W3C//DTD HTML 4.01//EN\"";
  +            this.uri = "\"http://www.w3.org/TR/html4/strict.dtd\"";
  +            this.updateElementType();
  +        }
  +    }
  +
  +    /**
  +     * The HTML 4.01 Transitional DTD includes everything in the
  +     * strict DTD plus deprecated elements and attributes (most of
  +     * which concern visual presentation).
  +     * <p>
  +     * See: <a href="http://www.w3.org/TR/html4/">
  +     * http://www.w3.org/TR/html4/</a>
  +     */
  +    public static class Html401Transitional extends Doctype {
  +
  +        public Html401Transitional() {
  +            this.name = "HTML";
  +            this.visibility = PUBLIC;
  +            this.identifier = "\"-//W3C//DTD HTML 4.01 Transitional//EN\"";
  +            this.uri = "\"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\"";
  +            this.updateElementType();
  +        }
  +    }
  +
  +    /**
  +     * The HTML 4.01 Frameset DTD includes everything in the transitional
  +     * DTD plus frames as well.
  +     * <p>
  +     * See: <a href="http://www.w3.org/TR/html4/">
  +     * http://www.w3.org/TR/html4/</a>
  +     */ 
  +    public static class Html401Frameset extends Doctype {
  +
  +        public Html401Frameset() {
  +            this.name = "HTML";
  +            this.visibility = PUBLIC;
  +            this.identifier = "\"-//W3C//DTD HTML 4.01 Frameset//EN\"";
  +            this.uri = "\"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd\"";
               this.updateElementType();
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ecs-dev-help@jakarta.apache.org