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 2002/03/29 16:32:54 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath XPathException.java

sboag       02/03/29 07:32:54

  Modified:    java/src/org/apache/xpath XPathException.java
  Log:
  Set the "StylesheetNode" to the ElemTemplateElement instead of the
  DOM backpointer.
  
  Revision  Changes    Path
  1.8       +3 -4      xml-xalan/java/src/org/apache/xpath/XPathException.java
  
  Index: XPathException.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/XPathException.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XPathException.java	29 Mar 2002 15:17:20 -0000	1.7
  +++ XPathException.java	29 Mar 2002 15:32:54 -0000	1.8
  @@ -60,7 +60,6 @@
   import java.io.PrintWriter;
   
   import javax.xml.transform.TransformerException;
  -import org.apache.xalan.templates.ElemTemplateElement;
   import org.w3c.dom.Node;
   
   /**
  @@ -130,14 +129,14 @@
      * this to work, the SourceLocator must be the owning ElemTemplateElement.
      * @return The dereference to the ElemVariable, or null if not found.
      */
  -  public Object getStylesheetNode(ExpressionNode ex)
  +  public org.w3c.dom.Node getStylesheetNode(ExpressionNode ex)
     {
     	
       ExpressionNode owner = getExpressionOwner(ex);
   
  -    if (null != owner && owner instanceof org.apache.xalan.templates.ElemTemplateElement)
  +    if (null != owner && owner instanceof org.w3c.dom.Node)
       {
  -		return ((org.apache.xalan.templates.ElemTemplateElement)owner).getDOMBackPointer();
  +		return ((org.w3c.dom.Node)owner);
       }
       return null;
   
  
  
  

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