You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ga...@locus.apache.org on 2000/11/01 01:21:00 UTC

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

garyp       00/10/31 16:21:00

  Modified:    java/src/org/apache/xpath/compiler Compiler.java
  Log:
  Implement document fragments to mirror documents.
  
  Revision  Changes    Path
  1.9       +2 -2      xml-xalan/java/src/org/apache/xpath/compiler/Compiler.java
  
  Index: Compiler.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/compiler/Compiler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Compiler.java	2000/10/30 18:59:18	1.8
  +++ Compiler.java	2000/11/01 00:20:59	1.9
  @@ -760,7 +760,7 @@
       case OpCodes.NODETYPE_NODE :
         return NodeFilter.SHOW_ALL;
       case OpCodes.NODETYPE_ROOT :
  -      return NodeFilter.SHOW_DOCUMENT;
  +      return NodeFilter.SHOW_DOCUMENT | NodeFilter.SHOW_DOCUMENT_FRAGMENT;
       case OpCodes.NODETYPE_FUNCTEST :
         return NodeTest.SHOW_BYFUNCTION;
       case OpCodes.NODENAME :
  @@ -827,7 +827,7 @@
       case OpCodes.FROM_ROOT :
         argLen = getArgLengthOfStep(opPos);
         opPos = getFirstChildPosOfStep(opPos);
  -      pattern = new StepPattern(NodeFilter.SHOW_DOCUMENT);
  +      pattern = new StepPattern(NodeFilter.SHOW_DOCUMENT | NodeFilter.SHOW_DOCUMENT_FRAGMENT);
         break;
       case OpCodes.MATCH_ATTRIBUTE :
         argLen = getArgLengthOfStep(opPos);