You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/01/07 23:11:22 UTC

cvs commit: xml-xalan/src/org/apache/xalan/xslt ElemLiteralResult.java Stylesheet.java

mmidy       00/01/07 14:11:22

  Modified:    src/org/apache/xalan/xslt ElemLiteralResult.java
                        Stylesheet.java
  Log:
  Fix processing of attributes in LiteralResultElement
  
  Revision  Changes    Path
  1.11      +1 -7      xml-xalan/src/org/apache/xalan/xslt/ElemLiteralResult.java
  
  Index: ElemLiteralResult.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/ElemLiteralResult.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ElemLiteralResult.java	2000/01/06 17:10:28	1.10
  +++ ElemLiteralResult.java	2000/01/07 22:11:22	1.11
  @@ -132,12 +132,6 @@
                 String versionStr = atts.getValue(i);
                 m_stylesheet.m_XSLTVerDeclared = Double.valueOf(versionStr).doubleValue();
               }
  -            // invalid attribute
  -            else
  -            {
  -              processor.warn(XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE, new Object[] {name, aname});
  -              needToProcess = false;
  -            }  
             }       
           }
         }
  @@ -145,7 +139,7 @@
         {
           boolean _processUseAttributeSets = processUseAttributeSets(aname, atts, i);
           boolean _processSpaceAttr = processSpaceAttr(aname, atts, i);
  -        if(!(isAttrOK(aname, atts, i) || _processUseAttributeSets || _processSpaceAttr))
  +        if(!(_processUseAttributeSets || _processSpaceAttr) && isAttrOK(aname, atts, i))
           {
             if(null == m_avts)
               m_avts = new Vector(nAttrs);
  
  
  
  1.21      +5 -1      xml-xalan/src/org/apache/xalan/xslt/Stylesheet.java
  
  Index: Stylesheet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/Stylesheet.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Stylesheet.java	2000/01/05 23:11:06	1.20
  +++ Stylesheet.java	2000/01/07 22:11:22	1.21
  @@ -831,7 +831,7 @@
     }
     
     /** 
  -   * See if this is a xmlns attribute or in a non-XSLT.
  +   * See if this is a xmlns attribute or in a non-XSLT namespace.
      * 
      * @param attrName Qualified name of attribute.
      * @param atts The attribute list where the element comes from (not used at 
  @@ -851,6 +851,10 @@
           String prefix = attrName.substring(0, indexOfNSSep);
           String ns = getNamespaceForPrefixFromStack(prefix);
           isAttrOK = (!ns.equals(XSLTEngineImpl.m_XSLNameSpaceURL));
  +      }
  +      else
  +      {
  +        isAttrOK = true; // default namespace, flag it as OK
         }
       }
       // TODO: Well, process it...