xsl:decimal-format

Declares a decimal format.

Format

<xsl:decimal-format 
  name = qname  
  decimal-separator = char  
  grouping-separator = char  
  infinity = string  
  minus-sign = char  
  NaN = string  
  percent = char  
  per-mille = char  
  zero-digit = char  
  digit = char  
  pattern-separator = char /> 

Description

The xsl:decimal-format instruction declares a decimal format, which controls the interpretation of a format pattern that is used by the format-number() function.

If there is a name attribute, the element declares a named decimal format. Otherwise, it declares the default decimal format. The value of the name attribute is a qualified name.

The other attributes on xsl:decimal-format correspond to the methods on the JDK DecimalFormatSymbols class. For each get/set method pair, there is an attribute defined for the xsl:decimal-format instruction.

The following attributes control the interpretation of characters in the format pattern and specify characters that can appear in the result of formatting the number:

The following attributes control the interpretation of characters in the format pattern:

The following attributes specify characters or strings that can appear in the result of formatting the number:

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

XML Schema Mapping

Stylus Studio includes a visual XML Schema-to-XML Schema mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code.

XSD Documentation Generator

Stylus Studio®'s XSD Editor includes an integrated XSD documentation generator, allowing you to easily publish XML content models defined in XSD in a convenient, HTML format.

Stylus Studio XML Editor Core Functions

Stylus Studio XML Editor Core Functions

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member