costin      00/12/19 14:01:10

  Modified:    java/src/org/apache/xalan/processor XSLTAttributeDef.java
  Log:
  One-line workaround for a bug in the parser. Crimson seems to return
  null for attrUri instead of "".
  
  Revision  Changes    Path
  1.15      +4 -2      
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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XSLTAttributeDef.java     2000/12/06 05:28:03     1.14
  +++ XSLTAttributeDef.java     2000/12/19 22:01:09     1.15
  @@ -1055,8 +1055,10 @@
   
           if(setterString.equals(S_FOREIGNATTR_SETTER))
           {
  -          // First try to match with the primative value.
  -          Class sclass = attrUri.getClass();
  +       // workaround for possible crimson bug
  +          if( attrUri==null) attrUri="";
  +       // First try to match with the primative value.
  +       Class sclass = attrUri.getClass();
             Class[] argTypes = new Class[]{ sclass, sclass,
                                         sclass, sclass };
     
  
  
  

Reply via email to