doxquery-devel Mailing List for Doxological XQuery
Status: Pre-Alpha
Brought to you by:
jpcs
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(19) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: George Xu <geo...@us...> - 2005-06-03 06:35:23
|
Update of /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19281/com/doxological/doxquery/grammar Modified Files: XQElementContentChar.java XQueryGrammar.jjt Log Message: 1. avoid building UnionOp nodes 2. avoid building empty DirAttributeList nodes 3. added toQuery() to XQElementContentChar.java Index: XQElementContentChar.java =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar/XQElementContentChar.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** XQElementContentChar.java 12 Apr 2005 02:15:26 -0000 1.4 --- XQElementContentChar.java 3 Jun 2005 06:35:14 -0000 1.5 *************** *** 33,35 **** --- 33,39 ---- return visitor.visit(this, data); } + public String toQuery() { + return value; + } + } Index: XQueryGrammar.jjt =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar/XQueryGrammar.jjt,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** XQueryGrammar.jjt 6 May 2005 01:18:52 -0000 1.23 --- XQueryGrammar.jjt 3 Jun 2005 06:35:14 -0000 1.24 *************** *** 1006,1010 **** (IntersectExceptExpr() (UnionOp() IntersectExceptExpr())*) #UnionExpr(>1) } ! void UnionOp() : {} { <UNION> | <BAR> --- 1006,1010 ---- (IntersectExceptExpr() (UnionOp() IntersectExceptExpr())*) #UnionExpr(>1) } ! void UnionOp() #void: {} { <UNION> | <BAR> *************** *** 1432,1438 **** * [95] DirAttributeList ::= (S (QName S? "=" S? DirAttributeValue)?)* [ws:explicit] */ ! void DirAttributeList() : {} { ! (<S> (QName() (<S>)? <EQUALS> (<S>)? DirAttributeValue())? )* } --- 1432,1440 ---- * [95] DirAttributeList ::= (S (QName S? "=" S? DirAttributeValue)?)* [ws:explicit] */ ! void DirAttributeList() #void : {} { ! (<S> (QName() (<S>)? <EQUALS> (<S>)? DirAttributeValue())? )* ! #DirAttributeList(jjtree.nodeArity() > 0) ! } |
From: John S. <jp...@us...> - 2005-05-06 01:19:04
|
Update of /cvsroot/doxquery/doxquery/test/src/com/doxological/doxquery/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/test/src/com/doxological/doxquery/test Added Files: ParserTester.java Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". --- NEW FILE: ParserTester.java --- /* * Copyright 2004 Doxological Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.doxological.doxquery.test; import java.io.*; import java.util.*; import java.lang.Math; import java.lang.System; import javax.xml.namespace.QName; import javax.xml.XMLConstants; import com.doxological.doxquery.*; import com.doxological.doxquery.grammar.*; import com.doxological.doxquery.utils.*; import com.doxological.doxquery.context.*; import com.doxological.doxquery.types.*; import com.doxological.doxquery.types.Type; import com.doxological.doxquery.parser.*; /** * Functional tests for the XQuery parser. Works by * parsing any files with an ".xqy" extension in the given * directory, and calling the "dump" method on the * resulting AST. It then compares this string with a file * with the same file stem, bu an extension of ".expected". * * @author John Snelson * * @see com.doxological.doxquery.grammar.XQueryGrammar * */ public class ParserTester { /** * Takes one argument - the test directory to scan for * ".xqy" and ".expected" files. */ public static void main(String args[]) { if(args.length != 1) { error("Wrong number of arguments"); } File dir = new File(args[0]); if(!dir.isDirectory()) { error("Argument should specify the test directory"); } List<String> failures = new LinkedList<String>(); int testsRun = runTests(dir, "", failures); System.out.println(); System.out.println("Tests run: " + testsRun + ", Tests passed: " + (testsRun - failures.size()) + ", Tests failed: " + failures.size()); System.out.println(); if(failures.isEmpty()) { System.out.println("All tests passed"); System.exit(0); } else { System.out.println("Failures have occured:"); int count = 1; for(String f: failures) { System.out.println(count + ") " + f); ++count; } System.exit(1); } } private static void error(String message) { System.err.println(message); System.exit(1); } private static int runTests(File dir, String indent, List<String> failures) { int testsRun = 0; File testFiles[] = dir.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isFile() && pathname.getName().endsWith(".xqy"); } }); File testDirs[] = dir.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory(); } }); if(testDirs.length != 0 || testFiles.length != 0) { System.err.print(indent + dir.getName() + ": "); for(File f: testFiles) { try { System.err.print("."); ++testsRun; runTest(f); } catch(Exception e) { failures.add(f.toString() + ": " + e.toString()); System.err.print("F"); } } System.err.println(); for(File d: testDirs) { testsRun += runTests(d, indent + " ", failures); } } return testsRun; } private static void runTest(File file) throws Exception { XQueryEnvironment env = new XQueryEnvironment(); XQueryGrammar parser = new XQueryGrammar(new FileReader(file)); parser.setEnvironment(env); parser.setResourceName(file.toString()); MutableStaticContext sContext = env.createStaticContext(); Module module = parser.Module(sContext); String actual = ""; if(!module.isModule()) { actual = module.getQueryBody().dumpToString(""); actual += "\n"; } actual += sContext.toString(true); // Read the expected file File exp = new File(file.getParentFile(), file.getName().replace(".xqy", ".expected")); if(!exp.isFile()) { // Write the failed test output writeActualFile(file, actual); throw new Exception("The expected file cannot be found: " + exp.toString()); } StringBuilder expected = new StringBuilder(); FileReader reader = new FileReader(exp); int c; while((c = reader.read()) != -1) { expected.append((char)c); } reader.close(); if(!expected.toString().equals(actual)) { // Write the failed test output writeActualFile(file, actual); throw new Exception("The expected file does not match the actual output."); } } private static void writeActualFile(File file, String content) throws Exception { File act = new File(file.getParentFile(), file.getName().replace(".xqy", ".actual")); FileWriter writer = new FileWriter(act); writer.write(content); writer.close(); } } |
From: John S. <jp...@us...> - 2005-05-06 01:19:04
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests/prolog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/test/parser_tests/prolog Added Files: prolog_test.expected prolog_test.xqy Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". --- NEW FILE: prolog_test.xqy --- xquery version "1.0" encoding "utf8"; module namespace pre = "http://test"; declare boundary-space strip; declare ordering unordered; declare default order empty greatest; declare copy-namespaces no-preserve, no-inherit; declare default collation "http://www.w3.org/2005/02/xpath-functions/collation/codepoint"; declare base-uri "http://hello"; declare construction strip; declare namespace bar = "urn:bar"; declare default function namespace "http://test"; import schema "http://test" at "test.schema"; declare variable $pre:little as processing-instruction("foo") external; declare variable $pre:medium := (3, 3.5, $pre:little); (: declare variable $pre:millenial := for $a in (1 to 5) return $a * 3; :) declare function pre:foo($a as element(foo), $b as item(), $c as xs:QName*) { (: $b treat as xs:string * + 5, :) (: / * - 5, :) <foo lala="franklin&jimmy""largeÿ{ (: $a/udder :) 7 }"> not funny <really> { (#fart#fartfart#) { (: $c :) 5 } } <!-- incidently --> </foo> }; declare function pre:noggin() as item() external; --- NEW FILE: prolog_test.expected --- -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors bar => urn:bar dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace pre => http://test fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://test Schema Element Definitions: define element {http://test}element substitutes for {http://test}noggin of type {http://www.w3.org/2001/XMLSchema}QName define element {http://test}purchaseOrder of type {http://test}PurchaseOrderType define element {http://test}apt of type {http://test}[Anon3] define element {http://test}address of type {http://test}USAddress define element {http://test}noggin of type {http://test}[Anon4] define element {http://test}usaddress substitutes for {http://test}address of type {http://test}USAddress define element {http://test}nycaddress substitutes for {http://test}usaddress of type {http://test}NYCAddress define element {http://test}comment of type {http://www.w3.org/2001/XMLSchema}string Schema Attribute Definitions: define attribute {http://test}attr of type {http://www.w3.org/2001/XMLSchema}string Schema Type Definitions: define type {http://test}[Anon2] restricts {http://www.w3.org/2001/XMLSchema}positiveInteger define type {http://test}type { (({http://www.w3.org/2005/02/xpath-datatypes}dayTimeDuration | {http://www.w3.org/2001/XMLSchema}anyURI*) & {http://www.w3.org/2005/02/xpath-datatypes}untyped & {http://www.w3.org/2001/XMLSchema}float)? } define type {http://test}[Anon4] { (({http://www.w3.org/2005/02/xpath-datatypes}dayTimeDuration | {http://www.w3.org/2001/XMLSchema}anyURI*) & {http://www.w3.org/2005/02/xpath-datatypes}untyped & {http://www.w3.org/2001/XMLSchema}float)? } define type {http://test}[Anon1] { (element {http://test}productName of type {http://www.w3.org/2001/XMLSchema}string, element {http://test}quantity of type {http://test}[Anon2], element {http://test}USPrice of type {http://www.w3.org/2001/XMLSchema}decimal, element {http://test}comment?, element {http://test}shipDate of type {http://www.w3.org/2001/XMLSchema}date?) } define type {http://test}simpleType restricts {http://www.w3.org/2001/XMLSchema}string define type {http://test}PurchaseOrderType { (attribute {http://test}orderDate of type {http://www.w3.org/2001/XMLSchema}date?, element {http://test}shipTo of type {http://test}USAddress, element {http://test}billTo of type {http://test}USAddress, element {http://test}comment?, element {http://test}items of type {http://test}Items) } define type {http://test}Items { (attribute {http://test}partNum of type {http://test}SKU, element {http://test}item of type {http://test}[Anon1]*) } define type {http://test}NYCAddress extends {http://test}USAddress { element {http://test}apt } define type {http://test}[Anon3] restricts {http://www.w3.org/2001/XMLSchema}positiveInteger define type {http://test}USAddress { (attribute {http://test}country of type {http://www.w3.org/2001/XMLSchema}NMTOKEN?, element {http://test}name of type {http://www.w3.org/2001/XMLSchema}string, element {http://test}street of type {http://www.w3.org/2001/XMLSchema}string, element {http://test}city of type {http://www.w3.org/2001/XMLSchema}string, element {http://test}state of type {http://www.w3.org/2001/XMLSchema}string, element {http://test}zip of type {http://www.w3.org/2001/XMLSchema}decimal) } define type {http://test}SKU restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: {http://test}noggin[0] => () as (element | attribute | text | document | comment | processing-instruction | {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType) {http://test}foo[3] => ($a as element foo nillable of type {http://www.w3.org/2001/XMLSchema}anyType, $b as (element | attribute | text | document | comment | processing-instruction | {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType), $c as {http://www.w3.org/2001/XMLSchema}QName*) as (element | attribute | text | document | comment | processing-instruction | {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType)* Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: UNORDERED Default Empty Ordering Mode: GREATEST Boundary Space Policy: STRIP Copy Namespaces Mode: no-preserve, no-inherit Base URI: http://hello Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- |
From: John S. <jp...@us...> - 2005-05-06 01:19:04
|
Update of /cvsroot/doxquery/doxquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861 Modified Files: build.xml Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". Index: build.xml =================================================================== RCS file: /cvsroot/doxquery/doxquery/build.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** build.xml 30 Mar 2005 01:07:37 -0000 1.12 --- build.xml 6 May 2005 01:18:51 -0000 1.13 *************** *** 30,33 **** --- 30,37 ---- <property name="dist" location="dist"/> + <property name="test" location="test"/> + <property name="test.src" location="${test}/src"/> + <property name="test.build" location="${test}/build"/> + <target name="init"> <!-- Create the time stamp --> *************** *** 60,63 **** --- 64,87 ---- </target> + <target name="compile_test" depends="compile" description="compiles the tests"> + <!-- Create the build directory structure used by compile --> + <mkdir dir="${test.build}"/> + <!-- Compile the java code from ${test.src} into ${test.build} --> + <depend srcdir="${test.src}" destdir="${test.build}"/> + <javac srcdir="${test.src}" destdir="${test.build}" source="1.5" debug="on" classpath="${build}"> + <compilerarg value="-Xlint:unchecked"/> + </javac> + </target> + + <target name="test" depends="compile_test" description="compiles and runs the tests"> + <java classname="com.doxological.doxquery.test.ParserTester"> + <arg value="${test}/parser_tests"/> + <classpath> + <pathelement path="${test.build}"/> + <pathelement path="${build}"/> + </classpath> + </java> + </target> + <target name="jar" depends="init, compile" description="generates the jar file" > |
From: John S. <jp...@us...> - 2005-05-06 01:19:04
|
Update of /cvsroot/doxquery/doxquery/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/test Added Files: .cvsignore Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". --- NEW FILE: .cvsignore --- build |
From: John S. <jp...@us...> - 2005-05-06 01:19:04
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests/bugs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/test/parser_tests/bugs Added Files: bug1196090.expected bug1196090.xqy Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". --- NEW FILE: bug1196090.expected --- FLWORExpr(5:1) ForBinding(5:6): VarName(5:6): a Expr(5:13) PathExpr(5:13) FunctionCall(5:13): doc StringLiteral(5:17): tests/usecases my/bib.xml RelativePathOp(5:45): / AbbrevForwardStep(5:46) QName(5:46): bib RelativePathOp(5:49): / AbbrevForwardStep(5:50) QName(5:50): book PathExpr(6:13) FunctionCall(6:13): doc StringLiteral(6:17): tests/usecases my/bib.xml RelativePathOp(6:45): // AbbrevForwardStep(6:47) QName(6:47): book ForBinding(7:6): VarName(7:6): b PathExpr(7:11) FunctionCall(7:11): doc StringLiteral(7:15): tests/usecases my/bib_1.xml RelativePathOp(7:45): // AbbrevForwardStep(7:47) QName(7:47): book ForBinding(8:6): VarName(8:6): c Expr(8:12) PathExpr(8:12) VarRef(8:12): a RelativePathOp(8:14): // AbbrevForwardStep(8:16) QName(8:16): title VarRef(8:23): b WhereClause(9:1) AndExpr(9:7) ComparisonExpr(9:7) FunctionCall(9:7): count PathExpr(9:13) VarRef(9:13): b RelativePathOp(9:15): / AxisStep(9:16) AbbrevForwardStep(9:16) QName(9:16): author Predicate(9:22) ComparisonExpr(9:23) AbbrevForwardStep(9:23): @ QName(9:24): lastname GeneralComp(9:32): = StringLiteral(9:33): John GeneralComp(9:42): = IntegerLiteral(9:44): 5 ComparisonExpr(10:11) PathExpr(10:11) VarRef(10:11): a RelativePathOp(10:13): / AbbrevForwardStep(10:14) QName(10:14): name GeneralComp(10:19): = PathExpr(10:21) VarRef(10:21): b RelativePathOp(10:23): / AbbrevForwardStep(10:24) QName(10:24): name QuantifiedExpr(12:12): some QuantifiedBinding(12:18): VarName(12:18): b100 PathExpr(12:26) VarRef(12:26): a RelativePathOp(12:28): / AbbrevForwardStep(12:29) QName(12:29): aaa ComparisonExpr(12:44) VarRef(12:44): b NodeComp(12:47): is VarRef(12:50): a DirElemConstructor(14:3) QName(14:4): book-with-prices DirAttributeList(14:20) ElementContentChar(14:21): Expr(16:3) VarRef(16:3): c VarRef(16:7): d ElementContentChar(17:4): QName(18:5): book-with-prices -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: bug1196090.xqy --- (: A test for correct comment parsing, specified by bug number 1196090. :) for $a in ( doc("tests/usecases my/bib.xml")/bib/book, doc("tests/usecases my/bib.xml")//book ), $b in doc("tests/usecases my/bib_1.xml")//book, $c in ($a//title, $b) where count($b/author[@lastname="John"]) = 5 and $a/name = $b/name (: this is a comment in XQuery :) and (some $b100 in $a/aaa satisfies ($b is $a)) return <book-with-prices> { $c, $d } </book-with-prices> |
Update of /cvsroot/doxquery/doxquery/test/parser_tests/w3c_usecases In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/test/parser_tests/w3c_usecases Added Files: NS-Q1.expected NS-Q1.xqy NS-Q2.expected NS-Q2.xqy NS-Q3.expected NS-Q3.xqy NS-Q4.expected NS-Q4.xqy NS-Q5.expected NS-Q5.xqy NS-Q6.expected NS-Q6.xqy NS-Q7.expected NS-Q7.xqy NS-Q8.expected NS-Q8.xqy PARTS-Q1.expected PARTS-Q1.xqy R-Q1.expected R-Q1.xqy R-Q10.expected R-Q10.xqy R-Q11.expected R-Q11.xqy R-Q12.expected R-Q12.xqy R-Q13.expected R-Q13.xqy R-Q14.expected R-Q14.xqy R-Q15.expected R-Q15.xqy R-Q16.expected R-Q16.xqy R-Q17.expected R-Q17.xqy R-Q18.expected R-Q18.xqy R-Q2.expected R-Q2.xqy R-Q3.expected R-Q3.xqy R-Q4.expected R-Q4.xqy R-Q5.expected R-Q5.xqy R-Q5bis.expected R-Q5bis.xqy R-Q6.expected R-Q6.xqy R-Q7.expected R-Q7.xqy R-Q8.expected R-Q8.xqy R-Q9.expected R-Q9.xqy SEQ-Q1.expected SEQ-Q1.xqy SEQ-Q2.expected SEQ-Q2.xqy SEQ-Q3.expected SEQ-Q3.xqy SEQ-Q4.expected SEQ-Q4.xqy SEQ-Q5.expected SEQ-Q5.xqy SEQ-Q5a.expected SEQ-Q5a.xqy SEQ-Q5b.expected SEQ-Q5b.xqy SGML-Q1.expected SGML-Q1.xqy SGML-Q10.expected SGML-Q10.xqy SGML-Q2.expected SGML-Q2.xqy SGML-Q3.expected SGML-Q3.xqy SGML-Q4.expected SGML-Q4.xqy SGML-Q5.expected SGML-Q5.xqy SGML-Q6.expected SGML-Q6.xqy SGML-Q7.expected SGML-Q7.xqy SGML-Q8a.expected SGML-Q8a.xqy SGML-Q8b.expected SGML-Q8b.xqy SGML-Q9.expected SGML-Q9.xqy TEXT-Q1.expected TEXT-Q1.xqy TEXT-Q2.expected TEXT-Q2.xqy TEXT-Q4.expected TEXT-Q4.xqy TEXT-Q5.expected TEXT-Q5.xqy TREE-Q1.expected TREE-Q1.xqy TREE-Q2.expected TREE-Q2.xqy TREE-Q3.expected TREE-Q3.xqy TREE-Q4.expected TREE-Q4.xqy TREE-Q5.expected TREE-Q5.xqy TREE-Q6.expected TREE-Q6.xqy XMP-Q1.expected XMP-Q1.xqy XMP-Q10.expected XMP-Q10.xqy XMP-Q11.expected XMP-Q11.xqy XMP-Q12.expected XMP-Q12.xqy XMP-Q2.expected XMP-Q2.xqy XMP-Q3.expected XMP-Q3.xqy XMP-Q4.expected XMP-Q4.xqy XMP-Q5.expected XMP-Q5.xqy XMP-Q6.expected XMP-Q6.xqy XMP-Q7.expected XMP-Q7.xqy XMP-Q8.expected XMP-Q8.xqy XMP-Q9.expected XMP-Q9.xqy Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". --- NEW FILE: XMP-Q4.expected --- DirElemConstructor(1:1) QName(1:2): results DirAttributeList(1:9) ElementContentChar(1:10): FLWORExpr(3:5) LetBinding(3:10): VarName(3:10): a PathExpr(3:15) FunctionCall(3:15): doc StringLiteral(3:19): bib.xml RelativePathOp(3:29): // AbbrevForwardStep(3:31) QName(3:31): author ForBinding(4:10): VarName(4:10): last FunctionCall(4:18): distinct-values PathExpr(4:34) VarRef(4:34): a RelativePathOp(4:36): / AbbrevForwardStep(4:37) QName(4:37): last ForBinding(5:10): VarName(5:10): first FunctionCall(5:19): distinct-values PathExpr(5:35) FilterExpr(5:35) VarRef(5:35): a Predicate(5:37) ComparisonExpr(5:38) AbbrevForwardStep(5:38) QName(5:38): last GeneralComp(5:42): = VarRef(5:43): last RelativePathOp(5:49): / AbbrevForwardStep(5:50) QName(5:50): first OrderByClause(6:5) OrderSpec(6:14) () VarRef(6:14): last OrderSpec(6:21) () VarRef(6:21): first DirElemConstructor(8:9) QName(8:10): result DirAttributeList(8:16) ElementContentChar(8:17): DirElemConstructor(9:25) QName(9:26): author DirAttributeList(9:32) ElementContentChar(9:33): DirElemConstructor(10:16) QName(10:17): last DirAttributeList(10:21) VarRef(10:24): last QName(10:33): last ElementContentChar(10:38): DirElemConstructor(11:16) QName(11:17): first DirAttributeList(11:22) VarRef(11:25): first QName(11:35): first ElementContentChar(11:41): QName(12:27): author ElementContentChar(12:34): FLWORExpr(14:17) ForBinding(14:22): VarName(14:22): b PathExpr(14:27) FunctionCall(14:27): doc StringLiteral(14:31): bib.xml RelativePathOp(14:41): / AbbrevForwardStep(14:42) QName(14:42): bib RelativePathOp(14:45): / AbbrevForwardStep(14:46) QName(14:46): book WhereClause(15:17) QuantifiedExpr(15:23): some QuantifiedBinding(15:29): VarName(15:29): ba PathExpr(15:35) VarRef(15:35): b RelativePathOp(15:37): / AbbrevForwardStep(15:38) QName(15:38): author AndExpr(16:34) ComparisonExpr(16:34) PathExpr(16:34) VarRef(16:34): ba RelativePathOp(16:37): / AbbrevForwardStep(16:38) QName(16:38): last GeneralComp(16:43): = VarRef(16:45): last ComparisonExpr(16:55) PathExpr(16:55) VarRef(16:55): ba RelativePathOp(16:58): / AbbrevForwardStep(16:59) QName(16:59): first GeneralComp(16:64): = VarRef(16:65): first PathExpr(17:24) VarRef(17:24): b RelativePathOp(17:26): / AbbrevForwardStep(17:27) QName(17:27): title ElementContentChar(18:14): QName(19:11): result ElementContentChar(20:4): QName(21:3): results -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: SEQ-Q2.expected --- FLWORExpr(1:1) ForBinding(1:6): VarName(1:6): s PathExpr(1:11) FunctionCall(1:11): doc StringLiteral(1:15): report1.xml RelativePathOp(1:29): // AxisStep(1:31) AbbrevForwardStep(1:31) QName(1:31): section Predicate(1:38) ComparisonExpr(1:39) AbbrevForwardStep(1:39) QName(1:39): section.title GeneralComp(1:53): = StringLiteral(1:55): Procedure FilterExpr(2:8) PathExpr(2:9) VarRef(2:9): s RelativePathOp(2:11): // AbbrevForwardStep(2:13) QName(2:13): instrument Predicate(2:24) ComparisonExpr(2:25) FunctionCall(2:25): position GeneralComp(2:35): <= IntegerLiteral(2:37): 2 -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: R-Q3.xqy --- <result> { for $u in doc("users.xml")//user_tuple for $i in doc("items.xml")//item_tuple where $u/rating > "C" and $i/reserve_price > 1000 and $i/offered_by = $u/userid return <warning> { $u/name } { $u/rating } { $i/description } { $i/reserve_price } </warning> } </result> --- NEW FILE: TREE-Q4.xqy --- <top_section_count> { count(doc("book.xml")/book/section) } </top_section_count> --- NEW FILE: XMP-Q12.expected --- DirElemConstructor(1:1) QName(1:2): bib DirAttributeList(1:5) ElementContentChar(1:6): FLWORExpr(3:5) ForBinding(3:10): VarName(3:10): book1 PathExpr(3:19) FunctionCall(3:19): doc StringLiteral(3:23): bib.xml RelativePathOp(3:33): // AbbrevForwardStep(3:35) QName(3:35): book ForBinding(4:10): VarName(4:10): book2 PathExpr(4:19) FunctionCall(4:19): doc StringLiteral(4:23): bib.xml RelativePathOp(4:33): // AbbrevForwardStep(4:35) QName(4:35): book LetBinding(5:10): VarName(5:10): aut1 FLWORExpr(5:18) ForBinding(5:23): VarName(5:23): a PathExpr(5:28) VarRef(5:28): book1 RelativePathOp(5:34): / AbbrevForwardStep(5:35) QName(5:35): author OrderByClause(6:18) OrderSpec(6:27) () PathExpr(6:27) VarRef(6:27): a RelativePathOp(6:29): / AbbrevForwardStep(6:30) QName(6:30): last OrderSpec(6:36) () PathExpr(6:36) VarRef(6:36): a RelativePathOp(6:38): / AbbrevForwardStep(6:39) QName(6:39): first VarRef(7:25): a LetBinding(8:10): VarName(8:10): aut2 FLWORExpr(8:18) ForBinding(8:23): VarName(8:23): a PathExpr(8:28) VarRef(8:28): book2 RelativePathOp(8:34): / AbbrevForwardStep(8:35) QName(8:35): author OrderByClause(9:18) OrderSpec(9:27) () PathExpr(9:27) VarRef(9:27): a RelativePathOp(9:29): / AbbrevForwardStep(9:30) QName(9:30): last OrderSpec(9:36) () PathExpr(9:36) VarRef(9:36): a RelativePathOp(9:38): / AbbrevForwardStep(9:39) QName(9:39): first VarRef(10:25): a WhereClause(11:5) AndExpr(11:11) ComparisonExpr(11:11) VarRef(11:11): book1 NodeComp(11:18): << VarRef(11:21): book2 FunctionCall(12:9): not ComparisonExpr(12:13) PathExpr(12:13) VarRef(12:13): book1 RelativePathOp(12:19): / AbbrevForwardStep(12:20) QName(12:20): title GeneralComp(12:26): = PathExpr(12:28) VarRef(12:28): book2 RelativePathOp(12:34): / AbbrevForwardStep(12:35) QName(12:35): title FunctionCall(13:9): deep-equal VarRef(13:20): aut1 VarRef(13:27): aut2 DirElemConstructor(15:9) QName(15:10): book-pair DirAttributeList(15:19) ElementContentChar(15:20): PathExpr(16:15) VarRef(16:15): book1 RelativePathOp(16:21): / AbbrevForwardStep(16:22) QName(16:22): title ElementContentChar(16:29): PathExpr(17:15) VarRef(17:15): book2 RelativePathOp(17:21): / AbbrevForwardStep(17:22) QName(17:22): title ElementContentChar(17:29): QName(18:11): book-pair ElementContentChar(19:2): QName(20:3): bib -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: NS-Q1.expected --- DirElemConstructor(1:1) QName(1:2): Q1 DirAttributeList(1:4) ElementContentChar(1:5): FLWORExpr(3:5) ForBinding(3:10): VarName(3:10): n FunctionCall(3:15): distinct-values FLWORExpr(4:19) ForBinding(4:24): VarName(4:24): i UnionExpr(4:30) PathExpr(4:30) FunctionCall(4:30): doc StringLiteral(4:34): auction.xml RelativePathOp(4:48): // AbbrevForwardStep(4:50) QName(4:50): *:* UnionOp(4:52) PathExpr(4:54) FunctionCall(4:54): doc StringLiteral(4:58): auction.xml RelativePathOp(4:72): // AbbrevForwardStep(4:74): @ QName(4:75): *:* FunctionCall(5:26): namespace-uri VarRef(5:40): i DirElemConstructor(7:13) QName(7:14): ns DirAttributeList(7:16) VarRef(7:18): n QName(7:23): ns ElementContentChar(8:4): QName(9:3): Q1 -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: TREE-Q1.expected --- DirElemConstructor(10:1) QName(10:2): toc DirAttributeList(10:5) ElementContentChar(10:6): FLWORExpr(12:5) ForBinding(12:10): VarName(12:10): s PathExpr(12:15) FunctionCall(12:15): doc StringLiteral(12:19): book.xml RelativePathOp(12:30): / AbbrevForwardStep(12:31) QName(12:31): book FunctionCall(12:43): local:toc VarRef(12:53): s ElementContentChar(13:4): QName(14:3): toc -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}ENTITY restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}base64Binary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKENS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}NMTOKEN+ } define type {http://www.w3.org/2001/XMLSchema}decimal restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}token restricts {http://www.w3.org/2001/XMLSchema}normalizedString define type {http://www.w3.org/2001/XMLSchema}anySimpleType restricts {http://www.w3.org/2001/XMLSchema}anyType { ({http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic | {http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION)* } define type {http://www.w3.org/2001/XMLSchema}dateTime restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}gMonthDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}normalizedString restricts {http://www.w3.org/2001/XMLSchema}string define type {http://www.w3.org/2001/XMLSchema}language restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}ENTITIES restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}ENTITY+ } define type {http://www.w3.org/2001/XMLSchema}nonPositiveInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}unsignedByte restricts {http://www.w3.org/2001/XMLSchema}unsignedShort define type {http://www.w3.org/2001/XMLSchema}float restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}byte restricts {http://www.w3.org/2001/XMLSchema}short define type {http://www.w3.org/2001/XMLSchema}positiveInteger restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}QName restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}time restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}date restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedLong restricts {http://www.w3.org/2001/XMLSchema}nonNegativeInteger define type {http://www.w3.org/2001/XMLSchema}ID restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}IDREF restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}int restricts {http://www.w3.org/2001/XMLSchema}long define type {http://www.w3.org/2001/XMLSchema}IDREFS restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { {http://www.w3.org/2001/XMLSchema}IDREF+ } define type {http://www.w3.org/2001/XMLSchema}gDay restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}unsignedInt restricts {http://www.w3.org/2001/XMLSchema}unsignedLong define type {http://www.w3.org/2001/XMLSchema}unsignedShort restricts {http://www.w3.org/2001/XMLSchema}unsignedInt define type {http://www.w3.org/2001/XMLSchema}gYearMonth restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyType restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute*, ({http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType* | (element? & text? & comment? & processing-instruction?)*)) } define type {http://www.w3.org/2001/XMLSchema}Name restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}gYear restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}boolean restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}NMTOKEN restricts {http://www.w3.org/2001/XMLSchema}token define type {http://www.w3.org/2001/XMLSchema}NCName restricts {http://www.w3.org/2001/XMLSchema}Name define type {http://www.w3.org/2001/XMLSchema}long restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2001/XMLSchema}short restricts {http://www.w3.org/2001/XMLSchema}int define type {http://www.w3.org/2001/XMLSchema}integer restricts {http://www.w3.org/2001/XMLSchema}decimal define type {http://www.w3.org/2001/XMLSchema}negativeInteger restricts {http://www.w3.org/2001/XMLSchema}nonPositiveInteger Variable Types: Function Signatures: {http://www.w3.org/2005/02/xquery-local-functions}toc[1] => ($book-or-section as element) as element* Collations: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Default Collation: http://www.w3.org/2005/02/xpath-functions/collation/codepoint Construction Mode: STRIP Ordering Mode: ORDERED Default Empty Ordering Mode: LEAST Boundary Space Policy: PRESERVE Copy Namespaces Mode: no-preserve, no-inherit Base URI: null Document Types: Collection Types: Default Collection Type: null Options: ----------------------------------------------- --- NEW FILE: SGML-Q7.expected --- DirElemConstructor(1:1) QName(1:2): result DirAttributeList(1:8) ElementContentChar(1:9): FLWORExpr(3:5) ForBinding(3:10): VarName(3:10): i PathExpr(3:15) FunctionCall(3:15): doc StringLiteral(3:19): sgml.xml RelativePathOp(3:30): // AbbrevForwardStep(3:32) QName(3:32): intro RelativePathOp(3:37): / AxisStep(3:38) AbbrevForwardStep(3:38) QName(3:38): para Predicate(3:42) IntegerLiteral(3:43): 1 DirElemConstructor(5:9) QName(5:10): first_letter DirAttributeList(5:22) FunctionCall(5:25): substring FunctionCall(5:35): string VarRef(5:42): i IntegerLiteral(5:47): 1 IntegerLiteral(5:50): 1 QName(5:56): first_letter ElementContentChar(6:4): QName(7:3): result -- Static Context ----------------------------- Namespaces: op => http://www.w3.org/2005/02/xpath-operators fs => http://www.w3.org/2005/02/xpath-formal-semantics xsi => http://www.w3.org/2001/XMLSchema-instance local => http://www.w3.org/2005/02/xquery-local-functions err => http://www.w3.org/2005/02/xqt-errors dm => http://www.w3.org/2005/02/xpath-datamodel xs => http://www.w3.org/2001/XMLSchema xdt => http://www.w3.org/2005/02/xpath-datatypes xml => http://www.w3.org/XML/1998/namespace fn => http://www.w3.org/2005/02/xpath-functions Default Element Namespace: Default Function Namespace: http://www.w3.org/2005/02/xpath-functions Schema Element Definitions: Schema Attribute Definitions: Schema Type Definitions: define type {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType restricts {http://www.w3.org/2001/XMLSchema}anySimpleType { ({http://www.w3.org/2001/XMLSchema}string | {http://www.w3.org/2001/XMLSchema}boolean | {http://www.w3.org/2001/XMLSchema}decimal | {http://www.w3.org/2001/XMLSchema}float | {http://www.w3.org/2001/XMLSchema}double | {http://www.w3.org/2001/XMLSchema}duration | {http://www.w3.org/2001/XMLSchema}dateTime | {http://www.w3.org/2001/XMLSchema}time | {http://www.w3.org/2001/XMLSchema}date | {http://www.w3.org/2001/XMLSchema}gYearMonth | {http://www.w3.org/2001/XMLSchema}gYear | {http://www.w3.org/2001/XMLSchema}gMonthDay | {http://www.w3.org/2001/XMLSchema}gDay | {http://www.w3.org/2001/XMLSchema}gMonth | {http://www.w3.org/2001/XMLSchema}hexBinary | {http://www.w3.org/2001/XMLSchema}base64Binary | {http://www.w3.org/2001/XMLSchema}anyURI | {http://www.w3.org/2001/XMLSchema}QName | {http://www.w3.org/2001/XMLSchema}NOTATION) } define type {http://www.w3.org/2001/XMLSchema}double restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}hexBinary restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}anyURI restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2005/02/xpath-datatypes}untyped restricts {http://www.w3.org/2001/XMLSchema}anyType { (attribute of type {http://www.w3.org/2005/02/xpath-datatypes}untypedAtomic*, (element of type {http://www.w3.org/2005/02/xpath-datatypes}untyped? & text? & comment? & processing-instruction?)*) } define type {http://www.w3.org/2001/XMLSchema}NOTATION restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}duration restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}string restricts {http://www.w3.org/2005/02/xpath-datatypes}anyAtomicType define type {http://www.w3.org/2001/XMLSchema}nonNegativeInteger restricts {http://www.w3.org/2001/XMLSchema}integer define type {http://www.w3.org/2... [truncated message content] |
From: John S. <jp...@us...> - 2005-05-06 01:19:03
|
Update of /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/src/com/doxological/doxquery/parser Modified Files: BaseXQueryParser.java Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". Index: BaseXQueryParser.java =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/parser/BaseXQueryParser.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** BaseXQueryParser.java 31 Mar 2005 01:23:20 -0000 1.6 --- BaseXQueryParser.java 6 May 2005 01:18:52 -0000 1.7 *************** *** 59,62 **** --- 59,64 ---- grammar_ = new XQueryGrammar((Reader)null); grammar_.setEnvironment(env); + grammar_.setNormaliser(new Normaliser()); + grammar_.setStaticAnalyser(new StaticAnalyser()); optimisers_ = new LinkedList<Optimiser>(); env_ = env; |
From: John S. <jp...@us...> - 2005-05-06 01:19:03
|
Update of /cvsroot/doxquery/doxquery/src/com/doxological/doxquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/src/com/doxological/doxquery Modified Files: XQueryEnvironment.java Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". Index: XQueryEnvironment.java =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/XQueryEnvironment.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XQueryEnvironment.java 31 Mar 2005 01:23:18 -0000 1.1 --- XQueryEnvironment.java 6 May 2005 01:18:52 -0000 1.2 *************** *** 99,103 **** private InputStream resolve(String location) { // Try using the classloader to find the resource ! return ClassLoader.getSystemResourceAsStream(location); } public InputStream resolveSchema(String targetNamespace, String location) { --- 99,107 ---- private InputStream resolve(String location) { // Try using the classloader to find the resource ! InputStream result = this.getClass().getClassLoader().getResourceAsStream(location); ! if(result == null) { ! result = ClassLoader.getSystemResourceAsStream(location); ! } ! return result; } public InputStream resolveSchema(String targetNamespace, String location) { |
From: John S. <jp...@us...> - 2005-05-06 01:19:03
|
Update of /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/src/com/doxological/doxquery/grammar Modified Files: Node.java SimpleNode.java XQueryGrammar.jjt Log Message: Fixed bug #1196090, an issue with the lexer and comments in certain positions. Added a functional regression test suits for the parser, which compares query AST output to the expected results. The tests can be built using the ant target "compile_test", and run using the target "test". Index: Node.java =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar/Node.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Node.java 24 Apr 2005 00:39:47 -0000 1.9 --- Node.java 6 May 2005 01:18:52 -0000 1.10 *************** *** 50,52 **** --- 50,53 ---- public void dump(String prefix); + public String dumpToString(String prefix); } Index: XQueryGrammar.jjt =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar/XQueryGrammar.jjt,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** XQueryGrammar.jjt 9 Apr 2005 02:16:57 -0000 1.22 --- XQueryGrammar.jjt 6 May 2005 01:18:52 -0000 1.23 *************** *** 17,26 **** options { // JavaCC options ! STATIC = false; OPTIMIZE_TOKEN_MANAGER = true; ! JAVA_UNICODE_ESCAPE = true; ! // DEBUG_PARSER = true; ! // DEBUG_LOOKAHEAD = true; ! // DEBUG_TOKEN_MANAGER = true; // JJTree options --- 17,26 ---- options { // JavaCC options ! STATIC = false; OPTIMIZE_TOKEN_MANAGER = true; ! JAVA_UNICODE_ESCAPE = true; ! // DEBUG_PARSER = true; ! // DEBUG_LOOKAHEAD = true; ! // DEBUG_TOKEN_MANAGER = true; // JJTree options *************** *** 67,71 **** public static void main(String args[]) throws ParseException { XQueryEnvironment env = new XQueryEnvironment(); ! XQueryGrammar parser = new XQueryGrammar(System.in); parser.setEnvironment(env); parser.setResourceName("stdin"); --- 67,71 ---- public static void main(String args[]) throws ParseException { XQueryEnvironment env = new XQueryEnvironment(); ! XQueryGrammar parser = new XQueryGrammar(System.in); parser.setEnvironment(env); parser.setResourceName("stdin"); *************** *** 84,89 **** private static final String DEFAULT_ELEMENT_NAMESPACE_PREFIX = "#default_element_namespace"; ! private Normaliser normaliser_ = new Normaliser(); ! private StaticAnalyser analyser_ = new StaticAnalyser(); private MutableStaticContext sContext_ = null; private List declarations_ = new LinkedList(); --- 84,96 ---- private static final String DEFAULT_ELEMENT_NAMESPACE_PREFIX = "#default_element_namespace"; ! private Normaliser normaliser_ = null; ! private StaticAnalyser analyser_ = null; ! public void setNormaliser(Normaliser n) { ! normaliser_ = n; ! } ! public void setStaticAnalyser(StaticAnalyser s) { ! analyser_ = s; ! } ! private MutableStaticContext sContext_ = null; private List declarations_ = new LinkedList(); *************** *** 193,201 **** { (VersionDecl())? (MainModule() | LibraryModule()) <EOF> { ! if(!module_.isModule()) { // Perform normalisation normaliser_.normalise(module_, sContext_); ! // Perform static analysis ! analyser_.analyse(module_, sContext_); } return module_; --- 200,210 ---- { (VersionDecl())? (MainModule() | LibraryModule()) <EOF> { ! if(!module_.isModule() && normaliser_ != null) { // Perform normalisation normaliser_.normalise(module_, sContext_); ! if(analyser_ != null) { ! // Perform static analysis ! analyser_.analyse(module_, sContext_); ! } } return module_; *************** *** 253,276 **** (NamespaceSetter() Separator() ((NamespaceSetter() | BadSetter()) Separator())*)? (VarFunctionOption() Separator() ((VarFunctionOption() | BadNamespaceSetter() | BadSetter()) Separator())*)?) { ! // Perform normalisation and static analysis on the function and variable declarations ! Iterator i = declarations_.iterator(); ! while(i.hasNext()) { ! Declaration decl = (Declaration)i.next(); ! normaliser_.normalise(decl, sContext_); ! if(decl instanceof VariableDeclaration) { ! // Check for a duplicate variable ! if(sContext_.getVariableTypeResolver().getVariableType(decl.getName()) != null) { ! throw new XQueryException("XQ0049", decl); ! } ! analyser_.analyse(decl, sContext_); ! // Add the declaration to the module ! module_.addDeclaration(decl); ! } ! else { ! // Add the declaration to the module ! module_.addDeclaration(decl); ! analyser_.analyse(decl, sContext_); } } --- 262,291 ---- (NamespaceSetter() Separator() ((NamespaceSetter() | BadSetter()) Separator())*)? (VarFunctionOption() Separator() ((VarFunctionOption() | BadNamespaceSetter() | BadSetter()) Separator())*)?) { ! if(normaliser_ != null) { ! // Perform normalisation and static analysis on the function and variable declarations ! Iterator i = declarations_.iterator(); ! while(i.hasNext()) { ! Declaration decl = (Declaration)i.next(); ! normaliser_.normalise(decl, sContext_); ! if(decl instanceof VariableDeclaration) { ! // Check for a duplicate variable ! if(sContext_.getVariableTypeResolver().getVariableType(decl.getName()) != null) { ! throw new XQueryException("XQ0049", decl); ! } ! if(analyser_ != null) { ! analyser_.analyse(decl, sContext_); ! } ! // Add the declaration to the module ! module_.addDeclaration(decl); ! } ! else { ! // Add the declaration to the module ! module_.addDeclaration(decl); ! if(analyser_ != null) { ! analyser_.analyse(decl, sContext_); ! } ! } } } *************** *** 653,657 **** void FunctionDecl() #void : { Token begin; QName name; Type type = null; Node expr = null; FunctionDeclaration funcDecl; } { ! begin=<DECLARE_FUNCTION> name=FunctionName2() { if(name == null) { throw new XQueryException("XP0008", resourceName_, begin); --- 668,672 ---- void FunctionDecl() #void : { Token begin; QName name; Type type = null; Node expr = null; FunctionDeclaration funcDecl; } { ! begin=<DECLARE_FUNCTION> name=QName2(sContext_.getDefaultFunctionNamespace()) <LBRACKET> { if(name == null) { throw new XQueryException("XP0008", resourceName_, begin); *************** *** 1175,1179 **** void StepExpr() #void : {} { ! AxisStep() | FilterExpr() } --- 1190,1194 ---- void StepExpr() #void : {} { ! LOOKAHEAD(2) FilterExpr() | AxisStep() } *************** *** 1380,1418 **** * [91] FunctionCall ::= <QName "("> (ExprSingle ("," ExprSingle)*)? ")" [gn:parens] [gn:reserved-function-names] */ ! void FunctionCall() : {} ! { ! FunctionName(jjtThis) (ExprSingle() (<COMMA> ExprSingle())*)? <RBRACKET> ! } ! void FunctionName(XQFunctionCall fc) #void : { Token t; } ! { ! t=<QNAME_LBRACKET> { ! // Search for the end of the QName ! int pos = 0; ! char c; ! for(; pos < t.image.length(); ++pos) { ! c = t.image.charAt(pos); ! if(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '(') ! break; ! } ! ! fc.set(t.image.substring(0, pos).intern()); ! } ! } ! QName FunctionName2() #void : { Token t; } { ! t=<QNAME_LBRACKET> { ! // Search for the end of the QName ! int pos = 0; ! char c; ! for(; pos < t.image.length(); ++pos) { ! c = t.image.charAt(pos); ! if(c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '(') ! break; ! } ! ! return StringUtils.makeQName(t.image.substring(0, pos), ! sContext_.getDefaultFunctionNamespace(), ! sContext_); ! } } --- 1395,1403 ---- * [91] FunctionCall ::= <QName "("> (ExprSingle ("," ExprSingle)*)? ")" [gn:parens] [gn:reserved-function-names] */ ! void FunctionCall() : { Token t; } { ! t=<QNAME> <LBRACKET> { ! jjtThis.set(t.image.intern()); ! } (ExprSingle() (<COMMA> ExprSingle())*)? <RBRACKET> } *************** *** 2564,2568 **** | <AT_STRINGLITERAL: "at" <WS> <STRINGLITERAL>> : DEFAULT ! | <LBRACKET: "("> : DEFAULT } --- 2549,2558 ---- | <AT_STRINGLITERAL: "at" <WS> <STRINGLITERAL>> : DEFAULT ! } ! ! <DEFAULT, ITEMTYPE, OPERATOR> ! TOKEN: ! { ! <LBRACKET: "("> : DEFAULT } *************** *** 2586,2595 **** } - <DEFAULT> - TOKEN: - { - <QNAME_LBRACKET: <QNAME> (<WS>)? "("> - } - <DEFAULT, OPERATOR, KINDTEST, KINDTESTFORPI, CLOSEKINDTEST> TOKEN: --- 2576,2579 ---- Index: SimpleNode.java =================================================================== RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/grammar/SimpleNode.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** SimpleNode.java 12 Apr 2005 02:15:25 -0000 1.12 --- SimpleNode.java 6 May 2005 01:18:52 -0000 1.13 *************** *** 147,150 **** --- 147,161 ---- } } + + public String dumpToString(String prefix) { + String result = toString(prefix) + "\n"; + for(Node n: children_) { + if (n != null) { + result += n.dumpToString(prefix + " "); + } + } + return result; + } + } |
From: John S. <jp...@us...> - 2005-05-06 00:49:47
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests/w3c_usecases In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5551/test/parser_tests/w3c_usecases Log Message: Directory /cvsroot/doxquery/doxquery/test/parser_tests/w3c_usecases added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:48:48
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests/prolog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5327/test/parser_tests/prolog Log Message: Directory /cvsroot/doxquery/doxquery/test/parser_tests/prolog added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:48:16
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests/bugs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5228/test/parser_tests/bugs Log Message: Directory /cvsroot/doxquery/doxquery/test/parser_tests/bugs added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:47:50
|
Update of /cvsroot/doxquery/doxquery/test/parser_tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5152/test/parser_tests Log Message: Directory /cvsroot/doxquery/doxquery/test/parser_tests added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:47:10
|
Update of /cvsroot/doxquery/doxquery/test/src/com/doxological/doxquery/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5022/test/src/com/doxological/doxquery/test Log Message: Directory /cvsroot/doxquery/doxquery/test/src/com/doxological/doxquery/test added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:47:09
|
Update of /cvsroot/doxquery/doxquery/test/src/com/doxological/doxquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4984/test/src/com/doxological/doxquery Log Message: Directory /cvsroot/doxquery/doxquery/test/src/com/doxological/doxquery added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:46:48
|
Update of /cvsroot/doxquery/doxquery/test/src/com/doxological In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4940/test/src/com/doxological Log Message: Directory /cvsroot/doxquery/doxquery/test/src/com/doxological added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:46:35
|
Update of /cvsroot/doxquery/doxquery/test/src/com In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4910/test/src/com Log Message: Directory /cvsroot/doxquery/doxquery/test/src/com added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:46:20
|
Update of /cvsroot/doxquery/doxquery/test/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4851/test/src Log Message: Directory /cvsroot/doxquery/doxquery/test/src added to the repository |
From: John S. <jp...@us...> - 2005-05-06 00:45:59
|
Update of /cvsroot/doxquery/doxquery/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4731/test Log Message: Directory /cvsroot/doxquery/doxquery/test added to the repository |
From: John S. <jp...@us...> - 2005-04-26 17:56:13
|
Update of /cvsroot/doxquery/doxquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2296 Modified Files: README Log Message: Removed whitespace change. Index: README =================================================================== RCS file: /cvsroot/doxquery/doxquery/README,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README 26 Apr 2005 17:38:58 -0000 1.3 --- README 26 Apr 2005 17:56:04 -0000 1.4 *************** *** 1,5 **** Doxological XQuery @VERSION@ (@DATESTAMP@) Copyright 2004-2005 Doxological Ltd. ! For license terms and conditions, see the LICENSE file. --- 1,5 ---- Doxological XQuery @VERSION@ (@DATESTAMP@) Copyright 2004-2005 Doxological Ltd. ! For license terms and conditions, see the LICENSE file. |
From: John S. <jp...@us...> - 2005-04-26 17:39:09
|
Update of /cvsroot/doxquery/doxquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25238 Modified Files: README Log Message: Whitespace change to test CVS commit messages. Index: README =================================================================== RCS file: /cvsroot/doxquery/doxquery/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 23 Mar 2005 17:31:54 -0000 1.2 --- README 26 Apr 2005 17:38:58 -0000 1.3 *************** *** 1,5 **** Doxological XQuery @VERSION@ (@DATESTAMP@) Copyright 2004-2005 Doxological Ltd. ! For license terms and conditions, see the LICENSE file. --- 1,5 ---- Doxological XQuery @VERSION@ (@DATESTAMP@) Copyright 2004-2005 Doxological Ltd. ! For license terms and conditions, see the LICENSE file. |