[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

calendar (Date Picker Calendar Type)

This element specifies the type of calendar which shall be displayed for the current date picker structured document tag, if a user interface is present for the structured document tag. The calendar type is stored on this element's val attribute.

If this element is omitted, then the calendar type shall be gregorian.

[Example: Consider the following structured document tag properties:

<w:sdtPr>
<w:date w:fullDate="01-01-2006T06:30:00Z">
<w:calendar w:val="gregorian"/>
</w:date>
</w:sdtPr>

The calendar element specifies that the calendar type for a calendar which may be displayed in the document shall be the Gregorian calendar format (gregorian). end example]

Parent Elements

date2.5.2.7)

 

Attributes

Description

val (Calendar Type Value)

Specifies a type of calendar, the use of which is determined by the parent XML element.

 

If this attribute is omitted, then the calendar type shall be gregorian.

 

[Example: Consider the following WordprocessingML for a document containing a structured document tag:

 

<w:sdtPr>
<w:date … >
<w:calendar w:val="japan"/>
</w:date>
</w:sdtPr>

 

The val attribute value of japan specifies that the Japanese Emperor Era calendar shall be used; in this case, it is used for the calendar displayed for a date structured document tag. end example]

 

The possible values for this attribute are defined by the ST_CalendarType simple type2.18.7).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_CalendarType">

   <attribute name="val" type="ST_CalendarType"/>

</complexType>