org.apache.commons.jxpath.referencetable.TestReferenceTableMap

Java 1.7.0_25

JXPATH 1.4 trunk 20141128

JAXP XPATH org.apache.xpath.jaxp.XPathImpl@6ec76003

{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}
<testBean beanName='root'>
	<integer>13</integer>
	<string>ciao</string>
	<testBean beanName='child'>
		<integer>27</integer>
	</testBean>
	<zlast>last</zlast>
</testBean>
#XPathResultTestXPath DOM resultNote
1/{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
2.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
3/.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
4//.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
5/./.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
6/././.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
7/./*/../.{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
8*rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
9*/.rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
10/*rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
11//*rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
12@*rootok--no match--
13@*/.rootok--no match--
14/@*rootok--no match--
15//@*rootokbeanName="root"
16node()rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
17/node()rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
18//node()rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
19text(){null}ok--no match--
20/text(){null}ok--no match--
21//text(){null}ok[#text: ]
22//*/text(){null}ok[#text: ]
23integer13ok--no match--
24/integer13ok--no match--
25//integer13ok<integer>13</integer>
26@integer13ok--no match--
27/@integer13ok--no match--
28/*/integer27ok<integer>13</integer>
29/*/@integer27ok--no match--
30Integer{null}ok--no match--
31stringciaook--no match--
32/stringciaook--no match--
33//stringciaook<string>ciao</string>
34String{null}ok--no match--
35//string[0]{null}ok--no match--
36//string[1]ciaook<string>ciao</string>
37descendant-or-self::string[1]ciaook<string>ciao</string>
38//string[2]{null}ok--no match--
39//string[3]{null}ok--no match--
40//zlastlastok<zlast>last</zlast>
41//integer[0]{null}ok--no match--
42//integer[1]13ok<integer>13</integer>
43//integer[2]{null}ok--no match--One could expect 27 but also Xalan return null, see 47
44//integer[3]{null}ok--no match--
45/descendant-or-self::node()/child::integer[0]{null}ok--no match--Full version of //integer[0]
46/descendant-or-self::node()/child::integer[1]13ok<integer>13</integer>Full version of //integer[1]
47/descendant-or-self::node()/child::integer[2]{null}ok--no match--Expanded version of //integer[2],
48descendant-or-self::integer[0]13Expected null--no match--Hmm..here zero index should be null (or exception ?)
49descendant-or-self::integer[1]13ok<integer>13</integer>
50descendant-or-self::integer[2]27ok<integer>27</integer>Here is 27
51/descendant-or-self::integer[1]13ok<integer>13</integer>
52/descendant-or-self::integer[2]27ok<integer>27</integer>
53//descendant-or-self::integer[1]13ok<integer>13</integer>
54//descendant-or-self::integer[2]27ok<integer>27</integer>
55*/ancestor-or-self::integer[1]13ok--no match--
56//ancestor-or-self::integer[1]13ok<integer>13</integer>
57//ancestor-or-self::integer[2]{null}ok--no match--
58*/*/ancestor-or-self::integer[1]27ok<integer>13</integer>
59//*[0]{null}ok--no match--
60//*[1]rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
61//*[2]13ok<string>ciao</string>
62//*[3]ciaook<testBean beanName='child'> 27 </testBean>
63//*[4]{beanName=child, integer=27}ok<zlast>last</zlast>
64//*[5]lastok--no match--Here one could expect string 'child' but.. also xalan does not include 'child' and 27 so 'last' is ok
65//*[6]{null}ok--no match--
66//*[7]{null}ok--no match--
67//*[8]{null}ok--no match--here over limit is null
68//node()[0]{null}ok--no match--
69//node()[1]rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
70//node()[2]13ok<integer>13</integer>
71//node()[3]ciaook[#text: ]
72//node()[4]{beanName=child, integer=27}ok<string>ciao</string>
73//node()[5]lastok[#text: ]
74//node()[6]{null}ok<testBean beanName='child'> 27 </testBean>
75//node()[7]{null}ok[#text: ]
76//node()[8]{null}ok<zlast>last</zlast>
77descendant-or-self::node()[0]{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}Expected null--no match--Hmm... here ? [0] returns root ??
78descendant-or-self::node()[1]{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok[#document: null]
79descendant-or-self::node()[2]rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
80descendant-or-self::node()[3]13ok[#text: ]
81descendant-or-self::node()[4]ciaook<integer>13</integer>
82descendant-or-self::node()[5]{beanName=child, integer=27}ok[#text: 13]
83descendant-or-self::node()[6]childok[#text: ]
84descendant-or-self::node()[7]27ok<string>ciao</string>
85descendant-or-self::node()[8]lastok[#text: ciao]Not sure why here (for bean) throws exception or is null, probably because in the 'scheme' there is the property but no value
86descendant-or-self::node()[9]{null}ok[#text: ]Not sure why here (for bean) throws exception, see up
87descendant-or-self::node()[10]{null}ok<testBean beanName='child'> 27 </testBean>
88descendant-or-self::node()[11]{null}ok[#text: ]
89descendant::node()[0]rootExpected null--no match--Hmm... here ? [0] returns root ??
90descendant::node()[1]rootok<testBean beanName='root'> 13 ciao 27 last </testBean>
91descendant::node()[2]13ok[#text: ]
92descendant::node()[3]ciaook<integer>13</integer>
93descendant::node()[4]{beanName=child, integer=27}ok[#text: 13]
94descendant::node()[5]childok[#text: ]
95descendant::node()[6]27ok<string>ciao</string>
96descendant::node()[7]lastok[#text: ciao]Not sure why here (for bean) throws exception or is null, probably because in the 'scheme' there is the property but no value
97descendant::node()[8]{null}ok[#text: ]Not sure why here (for bean) throws exception, see up
98descendant::node()[9]{null}ok<testBean beanName='child'> 27 </testBean>
99descendant::node()[10]{null}ok[#text: ]
100descendant::node()[11]{null}ok<integer>27</integer>
101descendant-or-self::*[0]{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}Expected null--no match--Hmm... here ? [0] returns root ??
102descendant-or-self::*[1]{beanName=root, integer=13, string=ciao, testBean={beanName=child, integer=27}, zlast=last}ok<testBean beanName='root'> 13 ciao 27 last </testBean>
103descendant-or-self::*[2]rootok<integer>13</integer>
104descendant-or-self::*[3]13ok<string>ciao</string>
105descendant-or-self::*[4]ciaook<testBean beanName='child'> 27 </testBean>
106descendant-or-self::*[5]{beanName=child, integer=27}ok<integer>27</integer>
107descendant-or-self::*[6]childok<zlast>last</zlast>
108descendant-or-self::*[7]27ok--no match--
109descendant-or-self::*[8]lastok--no match--Not sure why here (for bean) throws exception or is null, probably because in the 'scheme' there is the property but no value
110descendant-or-self::*[9]{null}ok--no match--Not sure why here (for bean) throws exception, see up
111descendant-or-self::*[10]{null}ok--no match--
112descendant-or-self::*[11]{null}ok--no match--