<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <code class="XSLTe"><var>xslt:</var>decimal-format</code>
要素 (<a0:anchor>最上位要素</a0:anchor>) は、数値書式の書式を定義するのに使います。
<a0:weak>(<a0:anchor>SGML</a0:anchor> の<a0:anchor>具象構文</a0:anchor>を定義するようなものですな。)</a0:weak>
<a0:anchor-external a0:resParameter="http://www.w3.org/TR/xslt#element-decimal-format" a0:resScheme="URI">http://www.w3.org/TR/xslt#element-decimal-format</a0:anchor-external></p><p>この要素は<a0:anchor>強制空要素</a0:anchor>です。</p><p>この要素が複数ある場合、名前が異なるか、
または同じ名前でも全ての属性が (既定値を含めて)
同じ値であるなら問題ありませんが、
そうでない場合は<a0:anchor>誤り</a0:anchor>です。
<a0:weak>名前は <code class="XSLTa">name</code> 属性の値で、省略されている場合は既定の書式です。</a0:weak></p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end> 属性:<table><tbody><tr><td>局所名</td><td>値の型</td><td>既定値</td><td>意味</td></tr><tr><td><code class="XSLTa"><a0:anchor>decimal-separator</a0:anchor></code></td><td><a0:anchor>char</a0:anchor></td><td>'.'</td><td>小数点</td></tr><tr><td><code class="XSLTa"><a0:anchor>digit</a0:anchor></code></td><td>char</td><td>'#'</td><td>数字符</td></tr><tr><td><code class="XSLTa"><a0:anchor>grouping-separator</a0:anchor></code></td><td>char</td><td>','</td><td>桁区切り</td></tr><tr><td><code class="XSLTa"><a0:anchor>infinity</a0:anchor></code></td><td><a0:anchor>string</a0:anchor></td><td>'Infinity'</td><td>無限大</td></tr><tr><td><code class="XSLTa"><a0:anchor>minus-sign</a0:anchor></code></td><td>char</td><td>'-'</td><td>負符号</td></tr><tr><td><code class="XSLTa"><a0:anchor>name</a0:anchor></code></td><td><a0:anchor>QName</a0:anchor></td><td>(既定)</td><td>書式名</td></tr><tr><td><code class="XSLTa"><a0:anchor>NaN</a0:anchor></code></td><td>string</td><td>'NaN'</td><td>非数</td></tr><tr><td><code class="XSLTa"><a0:anchor>pattern-separator</a0:anchor></code></td><td>char</td><td>';'</td><td>パターン分離子</td></tr><tr><td><code class="XSLTa"><a0:anchor>percent</a0:anchor></code></td><td>char</td><td>'%'</td><td>百分率記号</td></tr><tr><td><code class="XSLTa"><a0:anchor>per-mille</a0:anchor></code></td><td>char</td><td>'‰'</td><td>千分率記号</td></tr><tr><td><code class="XSLTa"><a0:anchor>zero-digit</a0:anchor></code></td><td>char</td><td>'0'</td><td>零数字</td></tr></tbody></table></p><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> <code class="XSLTa">name</code>, <code class="XSLTa">digit</code>, <code class="XSLTa">pattern-separator</code> 以外の属性は、書式の適用結果に影響します。 <code class="XSLTa">name</code>, <code class="XSLTa">infinity</code>, <code class="XSLTa">NaN</code>, <code class="XSLTa">minus-sign</code> 以外の属性は、書式そのものの解釈に影響します。</p><p><a0:anchor-end a0:anchor="4">[4]</a0:anchor-end> この要素で定義した書式文字は <code class="XPathf"><a0:anchor>format-number</a0:anchor></code> 関数で使います。</p></body></html>