Project

Profile

Help

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

he / src / use-cases / xmp / addq2.xq @ a31dd97a

1
xquery version "1.0";
2
(: Additional Use Case addq2 :)
3
(: Demonstrate access to external Java methods :)
4

    
5
declare namespace math="java:java.lang.Math";
6
<square-roots>
7
 {
8
  for $i in 1 to 20 return
9
    <number value="{$i}" sqrt="{math:sqrt(number($i))}"/>
10
 }
11
</square-roots> 
(3-3/38)