Project

Profile

Help

How to connect?
Download (372 Bytes) Statistics
| Branch: | Tag: | Revision:

he / latest9.9 / samples / query / books-to-html.xq @ 063bf4dc

1
xquery version "1.0";
2
  <html>
3
    <head>
4
      <title>A list of books</title>
5
    </head>
6
    <body>
7
      <h1>A list of books</h1>
8
      <p>Here are some interesting books:</p>
9
      <ul> {
10
        for $b in //BOOKS/ITEM
11
        order by $b/TITLE return
12
          <li><i> { string($b/TITLE) } </i> by { string($b/AUTHOR) } </li>
13
      } </ul>
14
    </body>
15
  </html>
16
    
(1-1/3)