sboag       01/06/20 13:22:19

  Modified:    java/src/org/apache/xalan/transformer TransformerImpl.java
  Log:
  Set the context node list for the root transformation, so the TransformState 
stuff
  doesn't complain.
  
  Revision  Changes    Path
  1.103     +14 -1     
xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- TransformerImpl.java      2001/06/20 19:11:05     1.102
  +++ TransformerImpl.java      2001/06/20 20:22:18     1.103
  @@ -1077,6 +1077,9 @@
       synchronized (m_outputContentHandler)
       {
         m_hasBeenReset = false;
  +      
  +      XPathContext xctxt = getXPathContext();
  +      DTM dtm = xctxt.getDTM(node);
   
         try
         {
  @@ -1109,7 +1112,17 @@
   
           // ===========
           // System.out.println("Calling applyTemplateToNode - 
"+Thread.currentThread().getName());
  -        this.applyTemplateToNode(null, null, node);
  +        DTMIterator dtmIter = new 
org.apache.xpath.axes.SelfIteratorNoPredicate();
  +        dtmIter.setRoot(node, xctxt);
  +        xctxt.pushContextNodeList(dtmIter);
  +        try
  +        {
  +          this.applyTemplateToNode(null, null, node);
  +        }
  +        finally
  +        {
  +          xctxt.popContextNodeList();
  +        }
           // m_stylesheetRoot.getStartRule().execute(this);
   
           // System.out.println("Done with applyTemplateToNode - 
"+Thread.currentThread().getName());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to