[DoXQuery-Devel] doxquery/test/parser_tests/w3c_usecases NS-Q1.expected,NONE,1.1 NS-Q1.xqy,NONE,1.1
Status: Pre-Alpha
Brought to you by:
jpcs
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] |