Hi Jose Angel !!!

Use the following sample code for math module, before going to use this sample ensure the math module was enabled in your exist-db modules list. for that see the conf.xml file and check the enabled modules list. Once that was done then u can run this sample ...

sample code
<!-- code starting point-->

declare namespace math= "http://exist-db.org/xquery/math";

let $mydata := xs:decimal(123.56)


<!-- code ending point-->

Raja >>>>>
XQuery Team

On 06/29/11, José Angel <templerioinmortal@gmail.com> wrote:
Please, can someone give me an example of XQuery using the math module of exist-db? for example the function abs.
I want to learn exactly how to declare the namespace and after call the function.


José Angel Labbad
Estudiante de Ingeniería de la Computación
Universidad Simón Bolívar.
Rajamani Marimuthu
Junior Research Fellow-JRF
NIC -Open Technology Centre
Rajaji Bhavan
Besant Nagar,
Chennai - 90
Cell : 9677192096