Messages per Month
| From | Sent On | Attachments |
|---|---|---|
| Jones Mark Mr (ITCS) | Mar 18, 2008 7:29 am | |
| Andrew Welch | Mar 18, 2008 8:27 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 9:32 am | |
| Martin Honnen | Mar 18, 2008 9:37 am | |
| David Carlisle | Mar 18, 2008 9:37 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 10:10 am | |
| ac | Mar 18, 2008 10:10 pm | |
| ac | Mar 18, 2008 10:25 pm | |
| Mukul Gandhi | Mar 19, 2008 1:28 am | |
| Michael Kay | Mar 19, 2008 2:15 am | |
| Michael Kay | Mar 19, 2008 2:21 am | |
| David Carlisle | Mar 19, 2008 3:01 am | |
| Patrick Bergeron | Mar 19, 2008 7:17 am | |
| David Carlisle | Mar 19, 2008 7:28 am | |
| Wendell Piez | Mar 19, 2008 9:44 am | |
| Michael Kay | Mar 19, 2008 10:21 am | |
| ac | Mar 19, 2008 10:33 am | |
| Ken Tam | Mar 19, 2008 9:49 pm | |
| Dimitre Novatchev | Mar 19, 2008 10:38 pm | |
| Dimitre Novatchev | Mar 20, 2008 6:34 am | |
| Michael Kay | Mar 20, 2008 7:31 am |
| Subject: | RE: [xsl] XSLT verbosity (atan2) | |
|---|---|---|
| From: | Michael Kay (mi...@saxonica.com) | |
| Date: | Mar 19, 2008 10:21:20 am | |
| List: | com.mulberrytech.lists.xsl-list | |
I'm trying to make a small template that concisely implements atan2, but returns the values in degrees and handles the case where DX is zero. So far, I have:
<snip/>
Is there a way to express this in only a few lines without all the verbosity?
Use XSLT 2.0.
Note this will also mean you can avoid converting the doubles to strings and then back again, which improves performance and precision.
Michael Kay http://www.saxonica.com/
--~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-...@lists.mulberrytech.com> --~--





