W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2006

XPath and math functionality

From: Peter Rushforth <prushforth@rogers.com>
Date: Wed, 20 Dec 2006 13:36:19 -0500
Message-ID: <00bf01c72465$bf469800$be49684a@peterqta28n9cv>
To: <public-qt-comments@w3.org>
I would like to see trigonometric functions and similar but common
math functions built directly into XPath.  The reason for this is that 
I process Geography Markup Language data which contains real
numbers.  It is often a requirement when processing geographic
data that mathematical calculations are performed.   For example,
I recently wrote an XSLT 2.0 stylesheet containing functions to 
transform GML data from the Lambert Conformal Conic projection 
to decimal degrees, and vice versa.  These stylesheets heavily rely 
on java.lang.Math.  I am sure similar considerations would apply
when transforming GML into SVG for user interaction and display.

Having to rely on external language implementations makes stylesheets 
more difficult to write and less portable, which I assume is a goal of the
XPath language.
Received on Wednesday, 20 December 2006 18:40:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:16 UTC