2.4.2.37.4 datafmt2

The following controls can contain the datafmt2 attribute in their XSLT representation:

If the control contains the datafmt2 attribute, it MUST contain the datafmt attribute (section 2.4.2.11).

All other controls MUST NOT contain this attribute in their XSLT representations.

The datafmt2 attribute extends datafmt for specifying additional format options. The value of this attribute MUST be a semicolon-delimited list of zero or more specification items and each specification item MUST follow this structure:

  • "itemName:itemValue"

The format specification item names MUST be set to the following and adhere to the specified value requirements:

  • calendar: The calendar type to use when displaying date values. This can be used with one of the following format categories specified in datafmt:

    • date

    • datetime

  • All other format categories specified in datafmt MUST NOT use this format specification item.

  • The value of this specification MUST be set to one of the following:

    • A calendar identifier specified in [MSDN-CALID].

    • -1: No calendar type specified.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="datafmt2" type="xsd:string"/>