Home | History | Annotate | Download | only in py-dom-xpath
      1 PASS //item[@id=last()]
      2 PASS //item[position()=3]
      3 PASS count(//item)
      4 FAIL id("c") incorrect length (expected 1, actual 0)
      5 FAIL id(//reference) incorrect length (expected 3, actual 0)
      6 PASS local-name(//self::node()[@id=7])
      7 PASS number(//self::node()[@id=7]/attribute::*[local-name()="value"])
      8 PASS local-name(/absent)
      9 PASS namespace-uri(//self::node()[@id>5])
     10 PASS //self::node()[@id and namespace-uri()="http://www.example.com/b"]
     11 PASS namespace-uri(/absent)
     12 PASS name(//self::node()[@id=7])
     13 PASS //self::node()[name()="b:item"]
     14 PASS name(/absent)
     15 PASS string(//para)
     16 PASS string(//inconceivable)
     17 PASS string(0 div 0)
     18 PASS string(1 div 0)
     19 PASS string(-1 div 0)
     20 PASS string(2.5 * 2)
     21 PASS string(1 div -2)
     22 PASS string(1 = 2)
     23 PASS string("string")
     24 PASS //para[string()="Two"]
     25 PASS concat(//para, ":", //para[2])
     26 PASS starts-with("foo-bar", "foo")
     27 PASS starts-with("foo-bar", "bar")
     28 PASS contains("foo-bar", "o-b")
     29 PASS contains("foo-bar", "b-o")
     30 PASS substring-before("foo::bar", "::")
     31 PASS substring-before("foo::bar", "--")
     32 PASS substring-after("foo::bar", "::")
     33 PASS substring-after("foo::bar", "--")
     34 PASS substring("12345", 2)
     35 PASS substring("12345", 2, 3)
     36 PASS substring("12345", 1.5, 2.6)
     37 PASS substring("12345", 0, 3)
     38 PASS substring("12345", 0 div 0, 3)
     39 PASS substring("12345", 1, 0 div 0)
     40 PASS substring("12345", -42, 1 div 0)
     41 PASS substring("12345", -1 div 0, 1 div 0)
     42 PASS substring("12345", 6, 1)
     43 PASS substring("12345", 1, 0)
     44 PASS string-length("12345")
     45 PASS //para[string-length()=5]
     46 PASS normalize-space("   one   two   ")
     47 PASS //para[normalize-space() = "Four"]
     48 PASS translate("abcdef", "abcde", "xyz")
     49 PASS boolean(1)
     50 PASS boolean(0)
     51 PASS boolean(0 div 0)
     52 PASS boolean(cod)
     53 PASS boolean(doc)
     54 PASS boolean("")
     55 PASS boolean("foo")
     56 PASS not(1 = 1)
     57 PASS true()
     58 PASS false()
     59 PASS //*[lang("en")]
     60 PASS //*[lang("EN-US")]
     61 PASS normalize-space((//text()[lang("jp")])[normalize-space()])
     62 PASS string(number("-1e5"))
     63 PASS number(true())
     64 PASS number(false())
     65 PASS number(//item)
     66 PASS string(//item[number()=4 div 2])
     67 PASS sum(//item)
     68 PASS floor(1.99)
     69 PASS floor(-1.99)
     70 PASS ceiling(1.99)
     71 PASS ceiling(-1.99)
     72 PASS round(1.5)
     73 PASS round(-1.5)
     74 PASS string(round(0 div 0))
     75 PASS round(1 div 0)
     76 PASS round(-1 div 0)
     77 PASS number(".1")
     78 PASS number("1.")
     79 PASS string(number(".1."))
     80 PASS string(number("..1"))
     81 PASS string(number("1.."))
     82 PASS string(number(".-1"))
     83 PASS successfullyParsed is true
     84 
     85 TEST COMPLETE
     86 
     87