xsl-list
[Top] [All Lists]

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

2021-05-22 08:26:46

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


--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>