[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to fuzz the last four digits of a lat/long?

Subject: Re: How to fuzz the last four digits of a lat/long?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 May 2021 13:26:40 -0000
Re:  How to fuzz the last four digits of a lat/long?
> But, but, but, ....
>
> I really want to do the transformation in one step.

Why?

There are clearly two separate operations here - rounding the value and then
formatting it. I would do

round($x, 2) => format-number("000.000000")

Michael Kay
Saxonica

> Is there a way to do the transformation in one step (using the built-in XSLT
or XPath functions)? As best I can tell, I can't do it in one step using the
format-number() function, right?
>
> Ditto for the longitude transformation.
>
> /Roger

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.