<test-case name="test001" FilePath="Axes" ... > ... <query name="test001.xq" date="2003-02-25"> <description>Child Element Test</description> </query> <input-file role="principal-data" context="default" variable="input-context">TreeCompass</input-file> <output-file role="principal" compare="XML">test001.xml</output-file> </test-case> |
(: Name: test001 :) (: Test Description: count function with missing argument :) fn:count() |
Feature Name |
Comments |
string literals (quoted strings) | |
integer literals | |
URI literals | |
Parentheses | |
empty-sequence constructor () | |
concatenation (comma operator) for sequence | |
expression comments | |
/ and // | for path steps |
/ alone | for root node |
all axes | for both expanded and abbreviated forms |
node tests (e.g., text() ) | |
Predicates | |
element constructors | including text-node content for those elements |
Namespace declaration in prolog | Including default |
+, - with two operands | |
fn:true(), fn:false() | |
fn:not() | |
and, or | |
string equality with XPath 1.0 semantics | |
numeric equality and inequality | |
node compare (these operators == and != backing up ‘node-equal’) | |
accessor functions: fn:data, fn:node-kind | |
fn:empty | |
fn:count | |
fn:position, fn:last | |
fn:string-length | |
fn:string-to-codepoints | |
“is” predicate | |
The types: xs:string, xs:anyURI, xs:integer, xs:decimal, xs:float, xs:double, xs:boolean, xs:date, xs:dateTime, xs:time |
Error conditions that can be mapped to the conditions specified in the appendices of the XML Query specifications should include the error code stated for that condition. The following example from the catalog file illustrates one of such conditions:
<test-case name="Literals036" FilePath="Expressions/PrimaryExpr/Literals/" scenario="parse-error" Creator="John Doe"> <description>Test for invalid decimal literal</description> <spec-citation spec="XQuery" section-number="3.1.1" section-title="Literals" section-pointer="id-literals"/> <query name="Literals036.xq" date="2005-02-03"/> <input-file role="principal-data" variable="input-context">emptydoc</input-file> <expected-error>XPST0003</expected-error> </test-case> |
Copyright © 1994-2005 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.