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/10/12 14:43:40 UTC

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

morten      01/10/12 05:43:40

  Modified:    java/src/org/apache/xalan/xsltc/compiler NameBase.java
  Log:
  Fixed a bug in the name() and local-name() functions. The functions would
  use the current node and not the context node when no arguments were given.
  PR:		bugzilla 3322
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.5       +2 -2      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/NameBase.java
  
  Index: NameBase.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/NameBase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NameBase.java	2001/07/10 17:45:20	1.4
  +++ NameBase.java	2001/10/12 12:43:40	1.5
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: NameBase.java,v 1.4 2001/07/10 17:45:20 morten Exp $
  + * @(#)$Id: NameBase.java,v 1.5 2001/10/12 12:43:40 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -136,7 +136,7 @@
   	
   	// Function was called with no parameters
   	if (argumentCount() == 0) {
  -	    il.append(methodGen.loadCurrentNode());
  +	    il.append(methodGen.loadContextNode());
   	}
   	// Function was called with node parameter
   	else if (_type == Type.Node) {
  
  
  

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