You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/01/03 10:59:43 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/processor XSLTAttributeDef.java

sboag       01/01/03 01:59:43

  Modified:    java/src/org/apache/xalan/processor XSLTAttributeDef.java
  Log:
  Since the DOM is passing xmlns decls as attributes, ignore these.
  
  Revision  Changes    Path
  1.17      +6 -4      xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java
  
  Index: XSLTAttributeDef.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/XSLTAttributeDef.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- XSLTAttributeDef.java	2001/01/02 03:36:42	1.16
  +++ XSLTAttributeDef.java	2001/01/03 09:59:43	1.17
  @@ -1041,7 +1041,9 @@
             StylesheetHandler handler, String attrUri, String attrLocalName, String attrRawName, String attrValue, Object elem)
               throws org.xml.sax.SAXException
     {
  -
  +    if(attrRawName.equals("xmlns") || attrRawName.startsWith("xmlns:"))
  +      return;
  +      
       String setterString = getSetterMethodName();
   
       // If this is null, then it is a foreign namespace and we 
  @@ -1055,10 +1057,10 @@
   
           if(setterString.equals(S_FOREIGNATTR_SETTER))
           {
  -	  // workaround for possible crimson bug
  +          // workaround for possible crimson bug
             if( attrUri==null) attrUri="";
  -	  // First try to match with the primative value.
  -	  Class sclass = attrUri.getClass();
  +          // First try to match with the primative value.
  +          Class sclass = attrUri.getClass();
             Class[] argTypes = new Class[]{ sclass, sclass,
                                         sclass, sclass };