文本文件  |  87行  |  2.35 KB

PASS //item[@id=last()]
PASS //item[position()=3]
PASS count(//item)
FAIL id("c") incorrect length (expected 1, actual 0)
FAIL id(//reference) incorrect length (expected 3, actual 0)
PASS local-name(//self::node()[@id=7])
PASS number(//self::node()[@id=7]/attribute::*[local-name()="value"])
PASS local-name(/absent)
PASS namespace-uri(//self::node()[@id>5])
PASS //self::node()[@id and namespace-uri()="http://www.example.com/b"]
PASS namespace-uri(/absent)
PASS name(//self::node()[@id=7])
PASS //self::node()[name()="b:item"]
PASS name(/absent)
PASS string(//para)
PASS string(//inconceivable)
PASS string(0 div 0)
PASS string(1 div 0)
PASS string(-1 div 0)
PASS string(2.5 * 2)
PASS string(1 div -2)
PASS string(1 = 2)
PASS string("string")
PASS //para[string()="Two"]
PASS concat(//para, ":", //para[2])
PASS starts-with("foo-bar", "foo")
PASS starts-with("foo-bar", "bar")
PASS contains("foo-bar", "o-b")
PASS contains("foo-bar", "b-o")
PASS substring-before("foo::bar", "::")
PASS substring-before("foo::bar", "--")
PASS substring-after("foo::bar", "::")
PASS substring-after("foo::bar", "--")
PASS substring("12345", 2)
PASS substring("12345", 2, 3)
PASS substring("12345", 1.5, 2.6)
PASS substring("12345", 0, 3)
PASS substring("12345", 0 div 0, 3)
PASS substring("12345", 1, 0 div 0)
PASS substring("12345", -42, 1 div 0)
PASS substring("12345", -1 div 0, 1 div 0)
PASS substring("12345", 6, 1)
PASS substring("12345", 1, 0)
PASS string-length("12345")
PASS //para[string-length()=5]
PASS normalize-space("   one   two   ")
PASS //para[normalize-space() = "Four"]
PASS translate("abcdef", "abcde", "xyz")
PASS boolean(1)
PASS boolean(0)
PASS boolean(0 div 0)
PASS boolean(cod)
PASS boolean(doc)
PASS boolean("")
PASS boolean("foo")
PASS not(1 = 1)
PASS true()
PASS false()
PASS //*[lang("en")]
PASS //*[lang("EN-US")]
PASS normalize-space((//text()[lang("jp")])[normalize-space()])
PASS string(number("-1e5"))
PASS number(true())
PASS number(false())
PASS number(//item)
PASS string(//item[number()=4 div 2])
PASS sum(//item)
PASS floor(1.99)
PASS floor(-1.99)
PASS ceiling(1.99)
PASS ceiling(-1.99)
PASS round(1.5)
PASS round(-1.5)
PASS string(round(0 div 0))
PASS round(1 div 0)
PASS round(-1 div 0)
PASS number(".1")
PASS number("1.")
PASS string(number(".1."))
PASS string(number("..1"))
PASS string(number("1.."))
PASS string(number(".-1"))
PASS successfullyParsed is true

TEST COMPLETE