incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eldon Carman <ecarm...@ucr.edu>
Subject Issues with fn:data
Date Fri, 16 Nov 2012 04:50:14 GMT
Notice the following two queries. They both operate on the same xml files.
The difference is one uses fn:data to get the result. Notice how the first
query without fn:data only has four lines in the output, while the query
with fn:data return eight lines. While researching the same query with a
where clause, I found that the test sequence comes in with eight items
instead of four. The extra items are an empty string and cause the system
to crash since an empty sequence can not be converted to a double.

Any ideas how to resolve this or where to look?

Thanks
Preston


for $x in collection("example-xml")/bookstore/book
return $x/price

-----
<price>30.00</price>
<price>29.99</price>
<price>49.99</price>
<price>39.95</price>
-----

for $x in collection("example-xml")/bookstore/book
return data($x/price)

-----
30.00

29.99

49.99

39.95

-----

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message