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 2001/06/13 05:42:14 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/templates ElemApplyTemplates.java

sboag       01/06/12 20:42:14

  Modified:    java/src/org/apache/xalan/templates ElemApplyTemplates.java
  Log:
  Have to push the default template for default character template.  Yuck.
  
  Revision  Changes    Path
  1.15      +7 -3      xml-xalan/java/src/org/apache/xalan/templates/ElemApplyTemplates.java
  
  Index: ElemApplyTemplates.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemApplyTemplates.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ElemApplyTemplates.java	2001/06/12 19:15:06	1.14
  +++ ElemApplyTemplates.java	2001/06/13 03:42:14	1.15
  @@ -348,9 +348,13 @@
             case DTM.ATTRIBUTE_NODE :
             case DTM.CDATA_SECTION_NODE :
             case DTM.TEXT_NODE :
  -            if(rth.m_elemIsPending || rth.m_docPending)
  -              rth.flushPending(true);
  -            dtm.dispatchCharactersEvents(child, chandler, false);
  +            // if(rth.m_elemIsPending || rth.m_docPending)
  +            //  rth.flushPending(true);
  +            transformer.pushPairCurrentMatched(sroot.getDefaultTextRule(), child);
  +            transformer.setCurrentElement(sroot.getDefaultTextRule());
  +            // dtm.dispatchCharactersEvents(child, chandler, false);
  +            dtm.dispatchCharactersEvents(child, rth, false);
  +            transformer.popCurrentMatched();
               continue;
             case DTM.DOCUMENT_NODE :
               template = sroot.getDefaultRootRule();
  
  
  

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