[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] question about sequence number
From: |
Jun Yu |
Subject: |
[Qexo-general] question about sequence number |
Date: |
Tue, 3 Feb 2004 22:25:01 +0100 (MET) |
Hello everybody,
I am using Qexo 1.7.90 with my application. I am meeting a problem as
follows:
Here is my XML file courses.xml:
<semester>
<lecture type="Kursvorlesung">Database</lecture>
<lecture type="Seminar">Semantic Web</lecture>
<lecture type="Praktikum">programming in SQL/Oracle8</lecture>
</semester>
Here is my XQuery:
let $i:=0
for $v in document("courses.xml"))/semester/lecture
let $i:=$i+1
return
<table>
<tr>
<td>{string($i)}.</td>
<td>{string($v/@type)}: </td>
<td>{$v}.</td>
</tr>
</table>
The result I can get is :
1. Kursvorlesung: Database
1. Seminar: Semantic Web
1. Praktikum: programming in SQL/Oracle8
Why I can not get the correct sequence number such as 1,2,3 with
the variable $i ?
Thanks in advance if anybody knows.
Best regards,
Jun Yu
- [Qexo-general] question about sequence number,
Jun Yu <=