There are 263 uses of invalid xsd:boolean attribute values: For example, take part 4, 3.10.1.90 "sharedItems. In the definition of the attributes containsBlank, containsDate, it says: "Specifies a boolean value that indicates whether this field contains a blank value. A value of on, 1, or true indicates this field contains one or more blank values. A value of off, 0, or false indicates this field does not contain blank values. The possible values for this attribute are defined by the XML Schema boolean datatype." However, XML Schema 3.2.2.1 (http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#boolean) defines allowed lexical value space for xsd:boolean as: "An instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0} ""On" and "Off" are not allowed values. A search of Part 4 indicates 262 other instances of this problem, all in SpreadsheetML and DrawingML.

This could be fixed by amending the text to remove the "on" and "off" options or by changing the schema to refer to the ST_OnOff type defined in 2.18.67, which does allow this set of values.

Caution may be warranted for a cascading effect to a change.

Throughout Part 4

TE

Proposed Disposition of DIS 29500 Comment CA-0013 (Modified: 2008-01-04) Agreed; in order to be consistent, updates will be made to the standard to specify that all sections use the xsd:boolean datatype consistently and make no additional extensions to that type. Part 4, §2 (WordprocessingML), currently defines the ST_OnOff simple type which is used by a number of attributes. This simple type allows for the same values as xsd:boolean, and additionally allows for the values of “on” and “off”. To be consistent with the rest of the standard, the ST_OnOff simple type will be modified to simply reference the xsd:boolean datatype and provide no additional extensions. The following changes will be made: Part 4, §2.18.67, page 1,779, lines 16­20 A value of on , 1 , or true specifies that the property shall be turned on. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted. A value of off , 0 , or false specifies that the property shall be explicitly turned off. This simple type’s contents are a restriction of the XML Schema string boolean datatype. The following are possible enumeration values for this type: Enumeration Value Description 0 (False) Specifies that the binary state of this property is off (parent property is explicitly not applied). 1 (True) Specifies that the binary state of this property is on (parent property is explicitly applied). false (False) Specifies that the binary state of this property is off (parent property is explicitly not applied). off (False) Specifies that the binary state of this property is off (parent property is explicitly not applied). on (True) Specifies that the binary state of this property is on (parent property is explicitly applied). true (True) Specifies that the binary state of this property is on (parent property is explicitvly applied). Part 4, §2.18.67, page 1,782, lines 3­10 The following XML Schema fragment defines the contents of this simple type: <simpleType name="ST_OnOff"> <restriction base="xsd: string boolean " / > <enumeration value="true"/> <enumeration value="false"/> <enumeration value="on"/> <enumeration value="off"/> <enumeration value="0"/> <enumeration value="1"/> </restriction> </simpleType> In Part 4, §3 (SpreadsheetML), the xsd:boolean datatype is already used, without extension. There are however errors within the descriptions of attributes that reference the xsd:boolean datatype. Often the description states that the values “on” and “off” are allowed. All such occurrences in §3 will be corrected to only state that values “0″, “1″, “true”, and “false” are allowed. Part 4, §5 (DrawingML), the xsd:boolean datatype is already used, without extension. There are however errors within the descriptions of attributes that reference the xsd:boolean datatype. Often the description states that the values “on” and “off” are allowed. All such occurrences in §5 will be corrected to only state that values “0″, “1″, “true”, and “false” are allowed. Part 4, §7.1 (Math), currently defines the ST_OnOff simple type which is used by a number of attributes. This simple type only allows for “on” and “off”. To be consistent with the rest of the standard, the ST_OnOff simple type will be modified to simply reference the xsd:boolean datatype and provide no additional extensions. The following changes will be made: Part 4, §7.1.3.9, page 5,097, lines 8­11 7.1.3.9 ST_OnOff (On Off) A value of 1 or true specifies that the property shall be turned on. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted. A value of 0 or false specifies that the property shall be explicitly turned off. The boolean value of either on or off . This simple type’s contents are a restriction of the XML Schema string boolean datatype. The following are possible enumeration values for this type: Enumeration Value Description off (Off) Off on (On) On Part 4, §7.1.3.9, page 5,097, lines 13­19 The following XML Schema fragment defines the contents of this simple type: <simpleType name="ST_OnOff"> <restriction base="xsd: boolean string " / > <enumeration value="on"/> <enumeration value="off"/> </restriction> </simpleType> Finally, any examples which use the values on or off will be changed to use the values 0 and 1 . Similar Comments: DK-0027 , DK-0029 , FR-0385 , FR-0386 , FR-0400 , GB-0317 , GB-0475 , GB-0623 , GB-0630 , US-0237

Tag and Go

No Comments

Sorry, the comment form is closed at this time.

  • Argentina (1)
  • Australia (30)
  • Austria (1)
  • Belgium (1)
  • Brazil (64)
  • Bulgaria (3)
  • Canada (79)
  • Chile (217)
  • China (1)
  • Colombia (237)
  • Czech Republic (75)
  • Denmark (168)
  • Ecma (76)
  • Ecuador (1)
  • Finland (15)
  • France (592)
  • Germany (162)
  • Ghana (12)
  • Greece (113)
  • India (82)
  • Iran (58)
  • Ireland (12)
  • Israel (33)
  • Italy (2)
  • Japan (82)
  • Jordan (1)
  • Kenya (81)
  • Malaysia (23)
  • Malta (5)
  • Mexico (7)
  • New Zealand (54)
  • Norway (12)
  • Peru (10)
  • Philippines (7)
  • Poland (4)
  • Portugal (118)
  • Singapore (2)
  • South Africa (17)
  • South Korea (25)
  • Spain (1)
  • Switzerland (19)
  • Thailand (1)
  • Tunisia (3)
  • Turkey (1)
  • UK (635)
  • Uruguay (18)
  • USA (288)
  • Venezuela (73)