cvs commit: xml-xalan/test/tests/api-gold/xalanj2 XPathAPITest_1.out XPathAPITest_10.out XPathAPITest_100.out XPathAPITest_101.out XPathAPITest_102.out XPathAPITest_103.out XPathAPITest_104.out XPathAPITest_105.out XPathAPITest_106.out XPathAPITest_107.out XPathAPITest_108.out XPathAPITest_109.out XPathAPITest_11.out XPathAPITest_110.out XPathAPITest_111.out XPathAPITest_112.out XPathAPITest_113.out XPathAPITest_114.out XPathAPITest_115.out XPathAPITest_116.out XPathAPITest_117.out XPathAPITest_118.out XPathAPITest_119.out XPathAPITest_12.out XPathAPITest_120.out XPathAPITest_121.out XPathAPITest_122.out XPathAPITest_123.out XPathAPITest_124.out XPathAPITest_125.out XPathAPITest_126.out XPathAPITest_127.out XPathAPITest_128.out XPathAPITest_129.out XPathAPITest_13.out XPathAPITest_130.out XPathAPITest_131.out XPathAPITest_132.out XPathAPITest_133.out XPathAPITest_134.out XPathAPITest_135.out XPathAPITest_136.out XPathAPITest_137.out XPathAPITest_138.out XPathAPITest_139.out XPathAPITest_14.out XPathAPITest_140.out XPathAPITest_141.out XPathAPITest_142.out XPathAPITest_143.out XPathAPITest_144.out XPathAPITest_145.out XPathAPITest_146.out XPathAPITest_147.out XPathAPITest_148.out XPathAPITest_149.out XPathAPITest_15.out XPathAPITest_150.out XPathAPITest_151.out XPathAPITest_16.out XPathAPITest_17.out XPathAPITest_18.out XPathAPITest_19.out XPathAPITest_2.out XPathAPITest_20.out XPathAPITest_21.out XPathAPITest_22.out XPathAPITest_23.out XPathAPITest_24.out XPathAPITest_25.out XPathAPITest_26.out XPathAPITest_27.out XPathAPITest_28.out XPathAPITest_29.out XPathAPITest_3.out XPathAPITest_30.out XPathAPITest_31.out XPathAPITest_32.out XPathAPITest_33.out XPathAPITest_34.out XPathAPITest_35.out XPathAPITest_36.out XPathAPITest_37.out XPathAPITest_38.out XPathAPITest_39.out XPathAPITest_4.out XPathAPITest_40.out XPathAPITest_41.out XPathAPITest_42.out XPathAPITest_43.out XPathAPITest_44.out XPathAPITest_45.out XPathAPITest_46.out XPathAPITest_47.out XPathAPITest_48.out XPathAPITest_49.out XPathAPITest_5.out XPathAPITest_50.out XPathAPITest_51.out XPathAPITest_52.out XPathAPITest_53.out XPathAPITest_54.out XPathAPITest_55.out XPathAPITest_56.out XPathAPITest_57.out XPathAPITest_58.out XPathAPITest_59.out XPathAPITest_6.out XPathAPITest_60.out XPathAPITest_61.out XPathAPITest_62.out XPathAPITest_63.out XPathAPITest_64.out XPathAPITest_65.out XPathAPITest_66.out XPathAPITest_67.out XPathAPITest_68.out XPathAPITest_69.out XPathAPITest_7.out XPathAPITest_70.out XPathAPITest_71.out XPathAPITest_72.out XPathAPITest_73.out XPathAPITest_74.out XPathAPITest_75.out XPathAPITest_76.out XPathAPITest_77.out XPathAPITest_78.out XPathAPITest_79.out XPathAPITest_8.out XPathAPITest_80.out XPathAPITest_81.out XPathAPITest_82.out XPathAPITest_83.out XPathAPITest_84.out XPathAPITest_85.out XPathAPITest_86.out XPathAPITest_87.out XPathAPITest_88.out XPathAPITest_89.out XPathAPITest_9.out XPathAPITest_90.out XPathAPITest_91.out XPathAPITest_92.out XPathAPITest_93.out XPathAPITest_94.out XPathAPITest_95.out XPathAPITest_96.out XPathAPITest_97.out XPathAPITest_98.out XPathAPITest_99.out

26 Jun 2001 15:47:30 -0000

mmidy       01/06/26 08:47:25

  Added:       test/java/src/org/apache/qetest/xalanj2 TestXPathAPI.java
               test/tests/api/xalanj2 testXPath.xml
               test/tests/api-gold/xalanj2 XPathAPITest_1.out
                        XPathAPITest_10.out XPathAPITest_100.out
                        XPathAPITest_101.out XPathAPITest_102.out
                        XPathAPITest_103.out XPathAPITest_104.out
                        XPathAPITest_105.out XPathAPITest_106.out
                        XPathAPITest_107.out XPathAPITest_108.out
                        XPathAPITest_109.out XPathAPITest_11.out
                        XPathAPITest_110.out XPathAPITest_111.out
                        XPathAPITest_112.out XPathAPITest_113.out
                        XPathAPITest_114.out XPathAPITest_115.out
                        XPathAPITest_116.out XPathAPITest_117.out
                        XPathAPITest_118.out XPathAPITest_119.out
                        XPathAPITest_12.out XPathAPITest_120.out
                        XPathAPITest_121.out XPathAPITest_122.out
                        XPathAPITest_123.out XPathAPITest_124.out
                        XPathAPITest_125.out XPathAPITest_126.out
                        XPathAPITest_127.out XPathAPITest_128.out
                        XPathAPITest_129.out XPathAPITest_13.out
                        XPathAPITest_130.out XPathAPITest_131.out
                        XPathAPITest_132.out XPathAPITest_133.out
                        XPathAPITest_134.out XPathAPITest_135.out
                        XPathAPITest_136.out XPathAPITest_137.out
                        XPathAPITest_138.out XPathAPITest_139.out
                        XPathAPITest_14.out XPathAPITest_140.out
                        XPathAPITest_141.out XPathAPITest_142.out
                        XPathAPITest_143.out XPathAPITest_144.out
                        XPathAPITest_145.out XPathAPITest_146.out
                        XPathAPITest_147.out XPathAPITest_148.out
                        XPathAPITest_149.out XPathAPITest_15.out
                        XPathAPITest_150.out XPathAPITest_151.out
                        XPathAPITest_16.out XPathAPITest_17.out
                        XPathAPITest_18.out XPathAPITest_19.out
                        XPathAPITest_2.out XPathAPITest_20.out
                        XPathAPITest_21.out XPathAPITest_22.out
                        XPathAPITest_23.out XPathAPITest_24.out
                        XPathAPITest_25.out XPathAPITest_26.out
                        XPathAPITest_27.out XPathAPITest_28.out
                        XPathAPITest_29.out XPathAPITest_3.out
                        XPathAPITest_30.out XPathAPITest_31.out
                        XPathAPITest_32.out XPathAPITest_33.out
                        XPathAPITest_34.out XPathAPITest_35.out
                        XPathAPITest_36.out XPathAPITest_37.out
                        XPathAPITest_38.out XPathAPITest_39.out
                        XPathAPITest_4.out XPathAPITest_40.out
                        XPathAPITest_41.out XPathAPITest_42.out
                        XPathAPITest_43.out XPathAPITest_44.out
                        XPathAPITest_45.out XPathAPITest_46.out
                        XPathAPITest_47.out XPathAPITest_48.out
                        XPathAPITest_49.out XPathAPITest_5.out
                        XPathAPITest_50.out XPathAPITest_51.out
                        XPathAPITest_52.out XPathAPITest_53.out
                        XPathAPITest_54.out XPathAPITest_55.out
                        XPathAPITest_56.out XPathAPITest_57.out
                        XPathAPITest_58.out XPathAPITest_59.out
                        XPathAPITest_6.out XPathAPITest_60.out
                        XPathAPITest_61.out XPathAPITest_62.out
                        XPathAPITest_63.out XPathAPITest_64.out
                        XPathAPITest_65.out XPathAPITest_66.out
                        XPathAPITest_67.out XPathAPITest_68.out
                        XPathAPITest_69.out XPathAPITest_7.out
                        XPathAPITest_70.out XPathAPITest_71.out
                        XPathAPITest_72.out XPathAPITest_73.out
                        XPathAPITest_74.out XPathAPITest_75.out
                        XPathAPITest_76.out XPathAPITest_77.out
                        XPathAPITest_78.out XPathAPITest_79.out
                        XPathAPITest_8.out XPathAPITest_80.out
                        XPathAPITest_81.out XPathAPITest_82.out
                        XPathAPITest_83.out XPathAPITest_84.out
                        XPathAPITest_85.out XPathAPITest_86.out
                        XPathAPITest_87.out XPathAPITest_88.out
                        XPathAPITest_89.out XPathAPITest_9.out
                        XPathAPITest_90.out XPathAPITest_91.out
                        XPathAPITest_92.out XPathAPITest_93.out
                        XPathAPITest_94.out XPathAPITest_95.out
                        XPathAPITest_96.out XPathAPITest_97.out
                        XPathAPITest_98.out XPathAPITest_99.out
  Log:
  Add XPath API test
  
  Revision  Changes    Path
  1.1                  
xml-xalan/test/java/src/org/apache/qetest/xalanj2/TestXPathAPI.java
  
  Index: TestXPathAPI.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xalan" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written
   *    permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 1999, Lotus
   * Development Corporation., http://www.lotus.com.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  // This file uses 4 space indents, no tabs.
  
  /*
   *
   * TestXPathAPI.java
   *
   */
  package org.apache.qetest.xalanj2;
  
  // import common testing framework stuff
  import org.apache.qetest.*;
  import org.apache.qetest.xsl.*;
  
  // java classes
  import java.io.File;
  import java.util.Hashtable;
  import java.util.Properties;
  import java.lang.reflect.Method;
  import java.io.FileInputStream;
  import java.io.FileNotFoundException;
  import java.util.Properties;
  
  import org.apache.xerces.parsers.DOMParser;
  import org.apache.xpath.XPathAPI;
  import org.apache.xml.utils.TreeWalker;
  import org.apache.xml.utils.DOMBuilder;
  import org.apache.xml.utils.PrefixResolverDefault;
  import org.apache.xml.dtm.DTMIterator;
  import org.apache.xml.dtm.DTM;
  import org.apache.xml.dtm.DTMManager;
  import org.apache.xpath.objects.XObject;
  
  import org.w3c.dom.Document;
  import org.w3c.dom.Element;
  import org.w3c.dom.DocumentFragment;
  import org.w3c.dom.Node;
  import org.w3c.dom.NodeList;
  import org.w3c.dom.traversal.NodeIterator;
  import org.xml.sax.SAXException;
  import org.xml.sax.InputSource;
  
  // Imported JAVA API for XML Parsing 1.0 classes
  import javax.xml.parsers.DocumentBuilder;
  import javax.xml.parsers.DocumentBuilderFactory;
  import javax.xml.parsers.ParserConfigurationException; 
  
  // Imported Serializer classes
  import javax.xml.transform.*;
  import javax.xml.transform.stream.*;
  import javax.xml.transform.dom.*;
  
  /**
   *  Very basic utility for applying an XPath epxression to an xml file and 
printing information
   /  about the execution of the XPath object and the nodes it finds.
   *  Takes 2 arguments:
   *     (1) an xml filename
   *     (2) an XPath expression to apply to the file
   *  Examples:
   *     java ApplyXPath foo.xml /
   *     java ApplyXPath foo.xml /doc/name[1]/@last
   * @see XPathAPI
   */
  public class TestXPathAPI extends XSLProcessorTestBase
  {
    protected String filename = null;
    protected String[] xpath;
    
    protected XSLTestfileInfo testFileInfo1 = new XSLTestfileInfo();
    protected XSLTestfileInfo testFileInfo4 = new XSLTestfileInfo();
    protected XSLTestfileInfo testFileInfo2 = new XSLTestfileInfo();
    protected XSLTestfileInfo testFileInfo3 = new XSLTestfileInfo();
  
    /** Provides nextName(), currentName() functionality.  */
    protected OutputNameManager outNames; 
  
    /** Subdirectory under test\tests\api for our xsl/xml files.  */
      public static final String X2J_SUBDIR = "xalanj2";
  
      /** Level that various TransformState logging should use.  */
      protected int traceLoggingLevel = Logger.INFOMSG - 1;
      
      private int numxpath;
  
      /** Just initialize test name, comment, numTestCases. */
      public TestXPathAPI()
      {
          numTestCases = 4;  // REPLACE_num
          testName = "XPathAPITest";
          testComment = "API coverage testing of XPathAPI";
      }
      
      /**
       * Initialize this test - Set names of xml/xsl test files etc.
       *
       * @param p Properties to initialize from (if needed)
       * @return false if we should abort the test; true otherwise
       */
      public boolean doTestFileInit(Properties p)
      {
          // NOTE: 'reporter' variable is already initialized at this point
  
          // Used for all tests; just dump files in trax subdir
          File outSubDir = new File(outputDir + File.separator + X2J_SUBDIR);
          if (!outSubDir.mkdirs())
              reporter.logWarningMsg("Could not create output dir: " + 
outSubDir);
          // Initialize an output name manager to that dir with .out extension
          outNames = new OutputNameManager(outputDir + File.separator + 
X2J_SUBDIR
                                           + File.separator + testName, ".out");
         
          String testBasePath = inputDir 
                                + File.separator 
                                + X2J_SUBDIR
                                + File.separator;
          String goldBasePath = goldDir 
                                + File.separator 
                                + X2J_SUBDIR
                                + File.separator;
  
          testFileInfo1.xmlName = testBasePath + "testXPath.xml";
          testFileInfo1.goldName = goldBasePath;
  
          testFileInfo3.xmlName = testBasePath + "testXPath.xml";
          testFileInfo3.goldName = goldBasePath;
  
          testFileInfo2.xmlName = testBasePath + "testXPath.xml";
          testFileInfo2.goldName = goldBasePath;
  
          //testFileInfo4.inputName = testBasePath + "test2.xsl";
          testFileInfo4.xmlName = testBasePath + "testXPath.xml";
          testFileInfo4.goldName = goldBasePath;
          
          numxpath = 16;
          xpath = new String[numxpath];
          xpath[0] = "/doc/a/@test";
          xpath[1] = "//."; 
          xpath[2] = "/doc"; 
          xpath[3] = "/doc/a"; 
          xpath[4] = "//@*";
          xpath[5] = ".";
          xpath[6] = "//ancestor-or-self::*";
          xpath[7] = "./child::*[1]";
          xpath[8] = "//descendant-or-self::*/@*[1]";
          xpath[9] = "//@* | * | node()";
          xpath[10] = "//*";
          xpath[11] = "/doc/namespace::*";
          xpath[12] = "//descendant::comment()";        
          xpath[13] = "//*[local-name()='a']";
          xpath[14] = "//*[current()]/@*";
          xpath[15] = "//*[last()]";
  
          return true;
      }
  
  
    
    /** Process input args and execute the XPath.  */
    public boolean testCase1()
      throws Exception
    {        
      filename = testFileInfo1.xmlName;
  
      if ((filename != null) && (filename.length() > 0)
          && (xpath != null) && (xpath.length > 0))
      {
        reporter.testCaseInit("Quick smoketest of XPathAPI");
          
        // Tell that we're loading classes and parsing, so the time it 
        // takes to do this doesn't get confused with the time to do 
        // the actual query and serialization.
        reporter.logInfoMsg("Loading classes, parsing "+filename);
        
        // Set up a DOM tree to query.
        InputSource in = new InputSource(new FileInputStream(filename));
        DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
        Document doc = dfactory.newDocumentBuilder().parse(in);
        
        // Set up an identity transformer to use as serializer.
        Transformer serializer = 
TransformerFactory.newInstance().newTransformer();
        serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        
        for (int i=0;i<numxpath; i++) 
        {
          // Use the simple XPath API to select a nodeIterator.
          reporter.logWarningMsg("Querying DOM using "+xpath[i]);
          NodeIterator nl = XPathAPI.selectNodeIterator(doc, xpath[i]);
          
          // Serialize the found nodes to System.out.
          
          Node n;
          
          while ((n = nl.nextNode())!= null)
          { 
            serializer.transform(new DOMSource(n), new 
StreamResult(outNames.nextName()));
            File f = new File(outNames.currentName()); 
            int result = fileChecker.check(reporter, 
                                             f, 
                                             new File(testFileInfo1.goldName + 
f.getName()), 
                                            "(1)transform into " + 
outNames.currentName());
            if (result == Logger.FAIL_RESULT)
                  reporter.logInfoMsg("(1)TestXPathAPI failure reason:" + 
fileChecker.getExtendedInfo());
  
            reporter.logTraceMsg(outNames.currentName() + n);
          }
        }
        reporter.testCaseClose();
      }
      else
      {
        reporter.logWarningMsg("Bad input args: " + filename + ", " + xpath);
      }
      
      return true;
     
    }
    
     /** Process input args and execute the XPath.  */
    public boolean testCase2()
      throws Exception
    {        
      filename = testFileInfo1.xmlName;
  
      if ((filename != null) && (filename.length() > 0)
          && (xpath != null) && (xpath.length > 0))
      {
         reporter.testCaseInit("Quick smoketest of XPathAPI");
        // Tell that we're loading classes and parsing, so the time it 
        // takes to do this doesn't get confused with the time to do 
        // the actual query and serialization.
        reporter.logInfoMsg("Loading classes, parsing "+filename);
        
        // Set up a DOM tree to query.
        InputSource in = new InputSource(new FileInputStream(filename));
        DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
        Document doc = dfactory.newDocumentBuilder().parse(in);
        
        // Set up an identity transformer to use as serializer.
        Transformer serializer = 
TransformerFactory.newInstance().newTransformer();
        serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
  
        for (int i=0;i<numxpath; i++) 
        {
          // Use the simple XPath API to select a nodeIterator.
          System.out.println("Querying DOM using "+xpath[i]);
          NodeList nl = XPathAPI.selectNodeList(doc, xpath[i]);
          
          // Serialize the found nodes to System.out.
          
          Node n;
          int j = 0;
          while (j < nl.getLength())
          {        
            n = nl.item(j++);
            serializer.transform(new DOMSource(n), new 
StreamResult(outNames.nextName()));
            File f = new File(outNames.currentName()); 
            int result = fileChecker.check(reporter, 
                                             f, 
                                             new File(testFileInfo2.goldName + 
f.getName()), 
                                            "(1)transform into " + 
outNames.currentName());
            if (result == Logger.FAIL_RESULT)
                  reporter.logInfoMsg("(1)TestXPathAPI failure reason:" + 
fileChecker.getExtendedInfo());
  
            reporter.logTraceMsg(outNames.currentName());
          }
        }
        reporter.testCaseClose();
      }
      else
      {
        reporter.logWarningMsg("Bad input args: " + filename + ", " + xpath);
      }
      
      return true;
      
    }
    
     /** Process input args and execute the XPath.  */
    public boolean testCase3()
      throws Exception
    {        
      filename = testFileInfo1.xmlName;
  
      if ((filename != null) && (filename.length() > 0)
          && (xpath != null) && (xpath.length > 0))
      {
         reporter.testCaseInit("Quick smoketest of XPathAPI");
        // Tell that we're loading classes and parsing, so the time it 
        // takes to do this doesn't get confused with the time to do 
        // the actual query and serialization.
        reporter.logInfoMsg("Loading classes, parsing "+filename);
        
        // Set up a DOM tree to query.
        InputSource in = new InputSource(new FileInputStream(filename));
        DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
        Document doc = dfactory.newDocumentBuilder().parse(in);
        
        // Set up an identity transformer to use as serializer.
        Transformer serializer = 
TransformerFactory.newInstance().newTransformer();
        serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        
        for (int i=0;i<numxpath; i++) 
        {
          // Use the simple XPath API to select a nodeIterator.
          reporter.logWarningMsg("Querying DOM using "+xpath[i]);
          Node n = XPathAPI.selectSingleNode(doc, xpath[i]);
          
          // Serialize the found nodes to System.out.
          if (n != null)
          {
            serializer.transform(new DOMSource(n), new 
StreamResult(outNames.nextName()));
            File f = new File(outNames.currentName()); 
            int result = fileChecker.check(reporter, 
                                             f, 
                                             new File(testFileInfo3.goldName + 
f.getName()), 
                                            "(1)transform into " + 
outNames.currentName());
            if (result == Logger.FAIL_RESULT)
                  reporter.logInfoMsg("(1)TestXPathAPI failure reason:" + 
fileChecker.getExtendedInfo());
  
            reporter.logTraceMsg(outNames.currentName());
          }
        }
        
         reporter.testCaseClose();
      }
      else
      {
        reporter.logWarningMsg("Bad input args: " + filename + ", " + xpath);
      }
      
      return true;
     
    }
    
    
     /** Process input args and execute the XPath.  */
    public boolean testCase4()
      throws Exception
    {        
      filename = testFileInfo1.xmlName;
  
      if ((filename != null) && (filename.length() > 0)
          && (xpath != null) && (xpath.length > 0))
      {
         reporter.testCaseInit("Quick smoketest of XPathAPI");
        // Tell that we're loading classes and parsing, so the time it 
        // takes to do this doesn't get confused with the time to do 
        // the actual query and serialization.
        reporter.logInfoMsg("Loading classes, parsing "+filename);
        
        // Set up a DOM tree to query.
        InputSource in = new InputSource(new FileInputStream(filename));
        DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
        Document doc = dfactory.newDocumentBuilder().parse(in);
        
        // Set up an identity transformer to use as serializer.
        Transformer serializer = 
TransformerFactory.newInstance().newTransformer();
        serializer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
        
        //Document d1 =(Document) doc.getDocumentElement();
       // Node d = (doc.getNodeType() == Node.DOCUMENT_NODE)
       // ? (Document) doc.getDocumentElement() : doc;
        PrefixResolverDefault prefixResolver = 
                   new PrefixResolverDefault(doc.getDocumentElement());
  
        for (int i=0;i<numxpath; i++) 
        {
          // Use the simple XPath API to select a nodeIterator.
          reporter.logWarningMsg("Querying DOM using "+xpath[i]);
          XObject list = XPathAPI.eval(doc, xpath[i], prefixResolver);
          
          // Serialize the found nodes to System.out.
          int n;
          
          DTMIterator nl = list.iter();
          DTMManager dtmManager = nl.getDTMManager();
          
          while ((n = nl.nextNode())!= DTM.NULL)
          { 
            Node node = dtmManager.getDTM(n).getNode(n);
            serializer.transform(new DOMSource(node), new 
StreamResult(outNames.nextName()));
            File f = new File(outNames.currentName()); 
            int result = fileChecker.check(reporter, 
                                             f, 
                                             new File(testFileInfo4.goldName + 
f.getName()), 
                                            "(1)transform into " + 
outNames.currentName());
            if (result == Logger.FAIL_RESULT)
                  reporter.logInfoMsg("(1)TestXPathAPI failure reason:" + 
fileChecker.getExtendedInfo());
  
            reporter.logTraceMsg(outNames.currentName());
          }
          
          
        }
         reporter.testCaseClose();
      }
      else
      {
        reporter.logWarningMsg("Bad input args: " + filename + ", " + xpath);
      }
     
      return true;
    }
    
     //-----------------------------------------------------------
    //---- Basic XSLProcessorTestBase utility methods
    //-----------------------------------------------------------
    /**
     * Convenience method to print out usage information - update if needed.  
     * @return String denoting usage of this test class
     */
    public String usage()
    {
      return ("Common [optional] options supported by TestXPathAPI:\n"
              + "(Note: assumes inputDir=.\\tests\\api)\n"
              + super.usage());   // Grab our parent classes usage as well
    }
    
    
    /** Main method to run from the command line.    */
    public static void main (String[] args)
    {
      TestXPathAPI app = new TestXPathAPI();
      app.doMain(args);
    }   
    
  } // end of class ApplyXPath
  
  
  
  
  1.1                  xml-xalan/test/tests/api/xalanj2/testXPath.xml
  
  Index: testXPath.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test" />
    <b attr1="a1" attr2="a2"   
    xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->         
  
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_1.out
  
  Index: XPathAPITest_1.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_10.out
  
  Index: XPathAPITest_10.out
  ===================================================================
  
      
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_100.out
  
  Index: XPathAPITest_100.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_101.out
  
  Index: XPathAPITest_101.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_102.out
  
  Index: XPathAPITest_102.out
  ===================================================================
  http://somebody.elses.extension
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_103.out
  
  Index: XPathAPITest_103.out
  ===================================================================
  <!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_104.out
  
  Index: XPathAPITest_104.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_105.out
  
  Index: XPathAPITest_105.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_106.out
  
  Index: XPathAPITest_106.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_107.out
  
  Index: XPathAPITest_107.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_108.out
  
  Index: XPathAPITest_108.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_109.out
  
  Index: XPathAPITest_109.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_11.out
  
  Index: XPathAPITest_11.out
  ===================================================================
   
    
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_110.out
  
  Index: XPathAPITest_110.out
  ===================================================================
  
    
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_111.out
  
  Index: XPathAPITest_111.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_112.out
  
  Index: XPathAPITest_112.out
  ===================================================================
  
    
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_113.out
  
  Index: XPathAPITest_113.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_114.out
  
  Index: XPathAPITest_114.out
  ===================================================================
  
      
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_115.out
  
  Index: XPathAPITest_115.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_116.out
  
  Index: XPathAPITest_116.out
  ===================================================================
  
      
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_117.out
  
  Index: XPathAPITest_117.out
  ===================================================================
   
    
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_118.out
  
  Index: XPathAPITest_118.out
  ===================================================================
  
  
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_119.out
  
  Index: XPathAPITest_119.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_12.out
  
  Index: XPathAPITest_12.out
  ===================================================================
  
  
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_120.out
  
  Index: XPathAPITest_120.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_121.out
  
  Index: XPathAPITest_121.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_122.out
  
  Index: XPathAPITest_122.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_123.out
  
  Index: XPathAPITest_123.out
  ===================================================================
  a1
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_124.out
  
  Index: XPathAPITest_124.out
  ===================================================================
  a2
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_125.out
  
  Index: XPathAPITest_125.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_126.out
  
  Index: XPathAPITest_126.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_127.out
  
  Index: XPathAPITest_127.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_128.out
  
  Index: XPathAPITest_128.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_129.out
  
  Index: XPathAPITest_129.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_13.out
  
  Index: XPathAPITest_13.out
  ===================================================================
  <!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_130.out
  
  Index: XPathAPITest_130.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_131.out
  
  Index: XPathAPITest_131.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_132.out
  
  Index: XPathAPITest_132.out
  ===================================================================
  a1
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_133.out
  
  Index: XPathAPITest_133.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_134.out
  
  Index: XPathAPITest_134.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_135.out
  
  Index: XPathAPITest_135.out
  ===================================================================
  a1
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_136.out
  
  Index: XPathAPITest_136.out
  ===================================================================
  a2
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_137.out
  
  Index: XPathAPITest_137.out
  ===================================================================
  <!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_138.out
  
  Index: XPathAPITest_138.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_139.out
  
  Index: XPathAPITest_139.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_14.out
  
  Index: XPathAPITest_14.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_140.out
  
  Index: XPathAPITest_140.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_141.out
  
  Index: XPathAPITest_141.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_142.out
  
  Index: XPathAPITest_142.out
  ===================================================================
  http://somebody.elses.extension
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_143.out
  
  Index: XPathAPITest_143.out
  ===================================================================
  <!-- -->
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_144.out
  
  Index: XPathAPITest_144.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_145.out
  
  Index: XPathAPITest_145.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_146.out
  
  Index: XPathAPITest_146.out
  ===================================================================
  test
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_147.out
  
  Index: XPathAPITest_147.out
  ===================================================================
  a1
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_148.out
  
  Index: XPathAPITest_148.out
  ===================================================================
  a2
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_149.out
  
  Index: XPathAPITest_149.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_15.out
  
  Index: XPathAPITest_15.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_150.out
  
  Index: XPathAPITest_150.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  
xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_151.out
  
  Index: XPathAPITest_151.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_16.out
  
  Index: XPathAPITest_16.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_17.out
  
  Index: XPathAPITest_17.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_18.out
  
  Index: XPathAPITest_18.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_19.out
  
  Index: XPathAPITest_19.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_2.out
  
  Index: XPathAPITest_2.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_20.out
  
  Index: XPathAPITest_20.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_21.out
  
  Index: XPathAPITest_21.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_22.out
  
  Index: XPathAPITest_22.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_23.out
  
  Index: XPathAPITest_23.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_24.out
  
  Index: XPathAPITest_24.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_25.out
  
  Index: XPathAPITest_25.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_26.out
  
  Index: XPathAPITest_26.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_27.out
  
  Index: XPathAPITest_27.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_28.out
  
  Index: XPathAPITest_28.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_29.out
  
  Index: XPathAPITest_29.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_3.out
  
  Index: XPathAPITest_3.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_30.out
  
  Index: XPathAPITest_30.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_31.out
  
  Index: XPathAPITest_31.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_32.out
  
  Index: XPathAPITest_32.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_33.out
  
  Index: XPathAPITest_33.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_34.out
  
  Index: XPathAPITest_34.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_35.out
  
  Index: XPathAPITest_35.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_36.out
  
  Index: XPathAPITest_36.out
  ===================================================================
  http://somebody.elses.extension
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_37.out
  
  Index: XPathAPITest_37.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_38.out
  
  Index: XPathAPITest_38.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_39.out
  
  Index: XPathAPITest_39.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_4.out
  
  Index: XPathAPITest_4.out
  ===================================================================
  
    
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_40.out
  
  Index: XPathAPITest_40.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_41.out
  
  Index: XPathAPITest_41.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_42.out
  
  Index: XPathAPITest_42.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_43.out
  
  Index: XPathAPITest_43.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_44.out
  
  Index: XPathAPITest_44.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_45.out
  
  Index: XPathAPITest_45.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_46.out
  
  Index: XPathAPITest_46.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_47.out
  
  Index: XPathAPITest_47.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_48.out
  
  Index: XPathAPITest_48.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_49.out
  
  Index: XPathAPITest_49.out
  ===================================================================
  
    
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_5.out
  
  Index: XPathAPITest_5.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_50.out
  
  Index: XPathAPITest_50.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_51.out
  
  Index: XPathAPITest_51.out
  ===================================================================
  
    
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_52.out
  
  Index: XPathAPITest_52.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_53.out
  
  Index: XPathAPITest_53.out
  ===================================================================
  
      
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_54.out
  
  Index: XPathAPITest_54.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_55.out
  
  Index: XPathAPITest_55.out
  ===================================================================
  
      
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_56.out
  
  Index: XPathAPITest_56.out
  ===================================================================
   
    
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_57.out
  
  Index: XPathAPITest_57.out
  ===================================================================
  
  
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_58.out
  
  Index: XPathAPITest_58.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_59.out
  
  Index: XPathAPITest_59.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_6.out
  
  Index: XPathAPITest_6.out
  ===================================================================
  
    
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_60.out
  
  Index: XPathAPITest_60.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_61.out
  
  Index: XPathAPITest_61.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_62.out
  
  Index: XPathAPITest_62.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_63.out
  
  Index: XPathAPITest_63.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_64.out
  
  Index: XPathAPITest_64.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_65.out
  
  Index: XPathAPITest_65.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_66.out
  
  Index: XPathAPITest_66.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_67.out
  
  Index: XPathAPITest_67.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_68.out
  
  Index: XPathAPITest_68.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_69.out
  
  Index: XPathAPITest_69.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_7.out
  
  Index: XPathAPITest_7.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_70.out
  
  Index: XPathAPITest_70.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_71.out
  
  Index: XPathAPITest_71.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_72.out
  
  Index: XPathAPITest_72.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_73.out
  
  Index: XPathAPITest_73.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_74.out
  
  Index: XPathAPITest_74.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_75.out
  
  Index: XPathAPITest_75.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_76.out
  
  Index: XPathAPITest_76.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_77.out
  
  Index: XPathAPITest_77.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_78.out
  
  Index: XPathAPITest_78.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_79.out
  
  Index: XPathAPITest_79.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_8.out
  
  Index: XPathAPITest_8.out
  ===================================================================
  
      
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_80.out
  
  Index: XPathAPITest_80.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_81.out
  
  Index: XPathAPITest_81.out
  ===================================================================
  http://somebody.elses.extension
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_82.out
  
  Index: XPathAPITest_82.out
  ===================================================================
  <!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_83.out
  
  Index: XPathAPITest_83.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_84.out
  
  Index: XPathAPITest_84.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_85.out
  
  Index: XPathAPITest_85.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_86.out
  
  Index: XPathAPITest_86.out
  ===================================================================
  a1
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_87.out
  
  Index: XPathAPITest_87.out
  ===================================================================
  a2
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_88.out
  
  Index: XPathAPITest_88.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_89.out
  
  Index: XPathAPITest_89.out
  ===================================================================
  <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_9.out
  
  Index: XPathAPITest_9.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_90.out
  
  Index: XPathAPITest_90.out
  ===================================================================
  <a>
      </a>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_91.out
  
  Index: XPathAPITest_91.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_92.out
  
  Index: XPathAPITest_92.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_93.out
  
  Index: XPathAPITest_93.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_94.out
  
  Index: XPathAPITest_94.out
  ===================================================================
  <a test="test"/>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_95.out
  
  Index: XPathAPITest_95.out
  ===================================================================
  test
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_96.out
  
  Index: XPathAPITest_96.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc><!-- -->
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_97.out
  
  Index: XPathAPITest_97.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_98.out
  
  Index: XPathAPITest_98.out
  ===================================================================
  <doc xmlns:ext="http://somebody.elses.extension";>
    <a test="test"/>
    <b attr1="a1" attr2="a2" xmlns:java="http://xml.apache.org/xslt/java";>
      <a>
      </a> 
    </b>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api-gold/xalanj2/XPathAPITest_99.out
  
  Index: XPathAPITest_99.out
  ===================================================================
  test
  
  

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

Reply via email to