[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-cvs
Subject:    cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs/traversers XSAttributeChecker.java
From:       sandygao () apache ! org
Date:       2004-10-29 4:07:13
Message-ID: 20041029040713.64644.qmail () minotaur ! apache ! org
[Download RAW message or body]

sandygao    2004/10/28 21:07:13

  Modified:    java/src/org/apache/xerces/impl/xs/traversers
                        XSAttributeChecker.java
  Log:
  Schema erratum E1-8 allows non-schema namespace attributes on appinfo and documentation.
  
  Revision  Changes    Path
  1.35      +13 -13    xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java
  
  Index: XSAttributeChecker.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSAttributeChecker.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- XSAttributeChecker.java	6 Oct 2004 15:14:48 -0000	1.34
  +++ XSAttributeChecker.java	29 Oct 2004 04:07:12 -0000	1.35
  @@ -1,12 +1,12 @@
   /*
    * Copyright 2001-2004 The Apache Software Foundation.
  - * 
  + *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
  - * 
  + *
    *      http://www.apache.org/licenses/LICENSE-2.0
  - * 
  + *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  @@ -59,7 +59,7 @@
    * - Should have the datatype validators return compiled value
    * - use symbol table instead of many hashtables
    *
  - * @xerces.internal 
  + * @xerces.internal
    *
    * @author Sandy Gao, IBM
    * @version $Id$
  @@ -97,7 +97,7 @@
       public static final int ATTIDX_NAME            = ATTIDX_COUNT++;
       public static final int ATTIDX_NAMESPACE       = ATTIDX_COUNT++;
       public static final int ATTIDX_NAMESPACE_LIST  = ATTIDX_COUNT++;
  -    public static final int ATTIDX_NILLABLE        = ATTIDX_COUNT++; 
  +    public static final int ATTIDX_NILLABLE        = ATTIDX_COUNT++;
       public static final int ATTIDX_NONSCHEMA       = ATTIDX_COUNT++;
       public static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;
       public static final int ATTIDX_PUBLIC          = ATTIDX_COUNT++;
  @@ -774,7 +774,7 @@
           attrList = Container.getContainer(1);
           // source = anyURI
           attrList.put(SchemaSymbols.ATT_SOURCE, allAttrs[ATT_SOURCE_N]);
  -        oneEle = new OneElement (attrList, false);
  +        oneEle = new OneElement (attrList);
           fEleAttrsMapG.put(SchemaSymbols.ELT_APPINFO, oneEle);
           fEleAttrsMapL.put(SchemaSymbols.ELT_APPINFO, oneEle);
   
  @@ -783,7 +783,7 @@
           // source = anyURI
           attrList.put(SchemaSymbols.ATT_SOURCE, allAttrs[ATT_SOURCE_N]);
           // xml:lang = language ???
  -        oneEle = new OneElement (attrList, false);
  +        oneEle = new OneElement (attrList);
           fEleAttrsMapG.put(SchemaSymbols.ELT_DOCUMENTATION, oneEle);
           fEleAttrsMapL.put(SchemaSymbols.ELT_DOCUMENTATION, oneEle);
   
  @@ -1055,7 +1055,7 @@
           //Hashtable otherValues = new Hashtable();
           long fromDefault = 0;
           Container attrList = oneEle.attrList;
  -        
  +
           // clear the "seen" flag.
           System.arraycopy(fSeenTemp, 0, fSeen, 0, ATTIDX_COUNT);
   
  @@ -1073,7 +1073,7 @@
               if (attrName.startsWith("xmlns")) {
                   continue;
               }
  -            
  +
               // skip anything starts with x/X m/M l/L
               // add this to the list of "non-schema" attributes
               if (attrName.toLowerCase(Locale.ENGLISH).startsWith("xml")) {
  @@ -1490,7 +1490,7 @@
                   retValue = INT_ANY_LIST;
   
                   fNamespaceList.removeAllElements();
  -                
  +
                   // tokenize
                   // use the default \t\r\n\f delimiters
                   StringTokenizer tokens = new StringTokenizer(value);
  @@ -1723,8 +1723,8 @@
   
           // mark this array as returned
           attrArray[ATTIDX_ISRETURNED] = Boolean.TRUE;
  -        // better clear nonschema vector 
  -        if(attrArray[ATTIDX_NONSCHEMA] != null) 
  +        // better clear nonschema vector
  +        if(attrArray[ATTIDX_NONSCHEMA] != null)
               ((Vector)attrArray[ATTIDX_NONSCHEMA]).clear();
           // and put it into the pool
           fArrayPool[--fPoolPos] = attrArray;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic