You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by rp...@locus.apache.org on 2000/01/05 02:41:56 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/validators/dtd DTDValidator.java

rpfeiffe    00/01/04 17:41:56

  Modified:    java/src/org/apache/xerces/validators/dtd DTDValidator.java
  Log:
  Update the Namespaces impl and added support for all DOM Level 2 core
  We should now match the match the W3C CR from 991210.
  Specifically  we have added another callback
  for the internal Subset as a string DOM2 addition: internalSubset(int);
  -rip
  
  Revision  Changes    Path
  1.2       +12 -1     xml-xerces/java/src/org/apache/xerces/validators/dtd/DTDValidator.java
  
  Index: DTDValidator.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/validators/dtd/DTDValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DTDValidator.java	1999/11/09 01:11:51	1.1
  +++ DTDValidator.java	2000/01/05 01:41:55	1.2
  @@ -286,6 +286,13 @@
            * @exception java.lang.Exception
            */
           public void endNamespaceDeclScope(int prefix) throws Exception;
  +        
  +        /**
  +         * Supports DOM Level 2 internalSubset addition.
  +         * Called when the internal subset is completely scanned.
  +         */
  +        public void internalSubset(int internalSubset);
  +        
       }
       //
       //
  @@ -408,6 +415,10 @@
       public void endNamespaceDeclScope(int prefix) throws Exception {
           fEventHandler.endNamespaceDeclScope(prefix);
       }
  +    public void internalSubset(int internalSubset) {
  +        fEventHandler.internalSubset(internalSubset);
  +    }
  +    
       public void setWarningOnDuplicateAttDef(boolean flag) {
           fWarningOnDuplicateAttDef = flag;
       }
  @@ -563,7 +574,7 @@
           }
           if (fValidating) {
               if (fRootElementType != -1 && rootElementType != fRootElementType) {
  -                reportRecoverableXMLError(XMLMessages.MSG_ROOT_ELEMENT_TYPE,
  +                          reportRecoverableXMLError(XMLMessages.MSG_ROOT_ELEMENT_TYPE,
                                               XMLMessages.VC_ROOT_ELEMENT_TYPE,
                                               fRootElementType, rootElementType);
               }