new File(saxonDir + "/results" + Version.getProductVersion() + ".log")));
MyErrorListener errorListener = new MyErrorListener(log);
saConfig.setErrorListener(errorListener);
NameTest testCaseNT = elementNameTest(pool, "test-case");
NameTest inputUriNT = elementNameTest(pool, "input-URI");
NameTest inputFileNT = elementNameTest(pool, "input-file");
NameTest queryNT = elementNameTest(pool, "query");
NameTest inputQueryNT = elementNameTest(pool, "input-query");
NameTest contextItemNT = elementNameTest(pool, "contextItem");
NameTest outputFileNT = elementNameTest(pool, "output-file");
NameTest sourceNT = elementNameTest(pool, "source");
NameTest schemaNT = elementNameTest(pool, "schema");
NameTest expectedErrorNT = elementNameTest(pool, "expected-error");
NameTest collectionNT = elementNameTest(pool, "collection");
NameTest defaultCollectionNT = elementNameTest(pool, "defaultCollection");
NameTest optimizationNT = elementNameTest(pool, "optimization");
int schemaAtt = pool.allocate("", "", "schema") & NamePool.FP_MASK;
int nameAtt = pool.allocate("", "", "name") & NamePool.FP_MASK;
int filePathAtt = pool.allocate("", "", "FilePath") & NamePool.FP_MASK;
int fileNameAtt = pool.allocate("", "", "FileName") & NamePool.FP_MASK;
int idAtt = pool.allocate("", "", "ID") & NamePool.FP_MASK;
int compareAtt = pool.allocate("", "", "compare") & NamePool.FP_MASK;
int variableAtt = pool.allocate("", "", "variable") & NamePool.FP_MASK;
int scenarioAtt = pool.allocate("", "", "scenario") & NamePool.FP_MASK;
int explainAtt = pool.allocate("", "", "explain") & NamePool.FP_MASK;
int assertAtt = pool.allocate("", "", "assert") & NamePool.FP_MASK;
int versionAtt = pool.allocate("", "", "version") & NamePool.FP_MASK;
int specVersionAtt = pool.allocate("", "", "spec-version") & NamePool.FP_MASK;
/**
* Look for an exceptions.xml document with the general format:
*
* <exceptions>
* <exception>
* <tests>testname1 testname2 ...</tests>
* <decription>text explanation</description>
* </exception>
* </exceptions>
*
* Tests listed in this file will not be run.
*/
DocumentInfo exceptionsDoc = saConfig.buildDocument(
new StreamSource(new File(saxonDir + "/exceptions.xml"))
);
NameTest exceptionTestsNT = new NameTest(Type.ELEMENT, pool.allocate("", "", "tests"), pool);
AxisIterator exceptionTestCases = exceptionsDoc.iterateAxis(Axis.DESCENDANT, exceptionTestsNT);
while (true) {
NodeInfo testCase = (NodeInfo)exceptionTestCases.next();
if (testCase == null) {
break;