Steven Jacobs created VXQUERY-96:
------------------------------------

             Summary: For statement seeming to have bugs
                 Key: VXQUERY-96
                 URL: https://issues.apache.org/jira/browse/VXQUERY-96
             Project: VXQuery
          Issue Type: Bug
            Reporter: Steven Jacobs


The following statement output without the values of $i and $j displaying:
for $i in (1, 2, 3),
$j in (4, 5, 6)
return <tuple><i>{$i}</i><j>{$j}</j></tuple>

expected output:
<tuple><i>1</i><j>4</j></tuple>
<tuple><i>1</i><j>5</j></tuple>
<tuple><i>1</i><j>6</j></tuple>
<tuple><i>2</i><j>4</j></tuple>
<tuple><i>2</i><j>5</j></tuple>
<tuple><i>2</i><j>6</j></tuple>
<tuple><i>3</i><j>4</j></tuple>
<tuple><i>3</i><j>5</j></tuple>
<tuple><i>3</i><j>6</j></tuple>

Actual output:
<tuple><i>1</i><j>4</j></tuple>
<tuple><i>1</i><j>5</j></tuple>
<tuple><i>1</i><j>6</j></tuple>
<tuple><i>2</i><j>4</j></tuple>
<tuple><i>2</i><j>5</j></tuple>
<tuple><i>2</i><j>6</j></tuple>
<tuple><i>3</i><j>4</j></tuple>
<tuple><i>3</i><j>5</j></tuple>
<tuple><i>3</i><j>6</j></tuple>

There also seem to be related bugs when using docs. The following returned an 
error:
for $j in doc("/home/steven/vxquery/books.xml")/bookstore/book, $i in 
doc("/home/steven/vxquery/books2.xml")/bookstore/book
return $j

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to