xml spy
Previous  Top  Next

Input Formatting (Formatting Numeric Datatypes)


Input Formatting enables the contents of numeric XML Schema datatype nodes (see list below) to be displayed in a format other than the lexical representation of that datatype. (For example, the lexical representation of an xs:date datatype node is YYYY-MM-DD., with an optional timezone component, such as +02:00.) The Input Formatting is displayed in Authentic View and, depending on the formatting definition, may also be available for display in the HTML, RTF, PDF and Word 2007 output. Input Formatting can also be used to format the result of an Auto-Calculation if the result of the Auto-Calculation is in the lexical format of one of the numeric datatypes (see list below) for which Input Formatting is available.

 

In the sub-sections of this section, we describe:

 

how the Input Formatting mechanism works, and
the syntax for defining the input formatting.

 

Note:Input Formatting does not change the format in which the data is stored in the XML document. In the valid XML document, the data is always stored in the lexical format appropriate to the datatype of the node. Input Formatting is applied to the display in Authentic View and, optionally (if available), to the display in the output.

 

Numeric datatypes for which Input Formatting is available

Input Formatting is available for the following datatypes:

 

xs:decimal; xs:integer; the 12 built-in types derived from xs:integer
xs:double and xs:float when values are between and including 0.000001 and 1,000,000. Values outside this range are displayed in scientific notation (for example: 1.0E7), and cannot have Input Formatting applied to them.
xs:date; xs:dateTime: xs:duration
xs:gYear; xs:gYearMonth; xs:gMonth; xs:gMonthDay; xs:gDay

 

 


See also:

 

 


 

 


Previous  Top  Next

© 2008 Altova