xsl-list
[Top] [All Lists]

RE: [xsl] entities in decimal-format/format-number

2010-04-20 09:15:24

When you say that something doesn't work, you need to say how it fails.
Error message? Wrong results?

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

-----Original Message-----
From: jack(_dot_)vosmerkin(_at_)gmail(_dot_)com 
[mailto:jack(_dot_)vosmerkin(_at_)gmail(_dot_)com] On Behalf Of ?????? 
??????????
Sent: 20 April 2010 15:08
To: xsl-list
Subject: [xsl] entities in decimal-format/format-number

Hi,

I have a problem with formatting numbers in xslt1 (libxslt).

I'm trying to use custom grouping separator. And sometimes it works.
<xsl:decimal-format name="foo" grouping-separator="&#160;"/> ...
<xsl:value-of select="format-number(21031036025.8, 
'#&#160;###','foo')"/>

But when I use some other entities, it doesn't:
<xsl:decimal-format name="foo" grouping-separator="&#8201;"/> ...
<xsl:value-of select="format-number(21031036025.8, 
'#&#8201;###','foo')"/>
(8201 is thin space)

And I can't figure out why it doesn't sometimes.
Thanks in advance for any help.

Mike.

--~------------------------------------------------------------------
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-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)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-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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