<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint &#187; formatting</title>
	<atom:link href="http://www.sharepointboris.net/tag/formatting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharepointboris.net</link>
	<description>and Boris Gomiunik</description>
	<lastBuildDate>Thu, 22 Dec 2011 11:45:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Proper display of decimal comma in XSLT data view webpart</title>
		<link>http://www.sharepointboris.net/2009/11/proper-display-of-decimal-comma-in-xslt-data-view-webpart/</link>
		<comments>http://www.sharepointboris.net/2009/11/proper-display-of-decimal-comma-in-xslt-data-view-webpart/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:43:24 +0000</pubDate>
		<dc:creator>Boris Gomiunik</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[XSLT]]></category>
		<category><![CDATA[formatting]]></category>

		<guid isPermaLink="false">http://www.sharepointboris.net/2009/11/proper-display-of-decimal-comma-in-xslt-data-view-webpart/</guid>
		<description><![CDATA[If you&#8217;re having trouble with format-number function in XSLT data view – it&#8217;s probably because of decimal comma. The server returns data with decimal comma, and the format-number function works with decimal dot. The workaround is to translate the values &#60;xsl:value-of select=&#34;format-number(translate(translate(@NumberField,&#8217;.',&#8217;,'),&#8217;,',&#8217;.'), &#8216;#.##0,00;-#.##0,00&#8242;, &#8216;lcid1060&#8242;)&#34; /&#62; (in the example above the @NumberField represents the internal name [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re having trouble with format-number function in XSLT data view – it&#8217;s probably because of decimal comma. The server returns data with decimal comma, and the format-number function works with decimal dot. The workaround is to translate the values</p>
<p><strong>&lt;xsl:value-of select=&quot;format-number(translate(translate(@NumberField,&#8217;.',&#8217;,'),&#8217;,',&#8217;.'), &#8216;#.##0,00;-#.##0,00&#8242;, &#8216;lcid1060&#8242;)&quot; /&gt;</strong></p>
<p>(in the example above the @NumberField represents the internal name of the field that contains numerical value.</p>
<p>Also make sure that in HTML just before the &lt;/xsl:stylesheet&gt; tag you have included the following tag:</p>
<p><strong>&lt;xsl:decimal-format decimal-separator=&quot;,&quot; grouping-separator=&quot;.&quot; name=&quot;lcid1060&quot; /&gt;</strong></p>
<p><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointboris.net/2009/11/proper-display-of-decimal-comma-in-xslt-data-view-webpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

