You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/06/14 13:41:59 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler LiteralElement.java

morten      01/06/14 04:41:59

  Modified:    java/src/org/apache/xalan/xsltc/compiler LiteralElement.java
  Log:
  Added one-line fix to prevent null-pointer error. Simple code cleanup.
  PR:		n/a
  Obtained from:	suggestion by Guoliang Cao <ca...@ispsoft.com>
  Submitted by:	cao@ispsoft.com
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.8       +4 -3      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/LiteralElement.java
  
  Index: LiteralElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/LiteralElement.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LiteralElement.java	2001/06/11 12:03:33	1.7
  +++ LiteralElement.java	2001/06/14 11:41:58	1.8
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: LiteralElement.java,v 1.7 2001/06/11 12:03:33 morten Exp $
  + * @(#)$Id: LiteralElement.java,v 1.8 2001/06/14 11:41:58 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -273,6 +273,7 @@
   	for (int i = 0; i < count; i++) {
   
   	    final QName qname = parser.getQName(_attributes.getQName(i));
  +	    final String uri = qname.getNamespace();
   	    final String val = _attributes.getValue(i);
   
   	    // Handle xsl:use-attribute-sets. Attribute sets are placed first
  @@ -282,8 +283,8 @@
   		setFirstAttribute(new UseAttributeSets(val, parser));
   	    }
   	    // Ignore all other attributes in XSL namespace
  -	    else if (qname.getNamespace().equals(XSLT_URI)) {
  -
  +	    else if ((uri != null) && (uri.equals(XSLT_URI))) {
  +		
   	    }
   	    // Handle xsl:extension-element-prefixes
   	    else if (qname == parser.getExtensionElementPrefixes()) {
  
  
  

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