22.9.2.9 ST_Percentage

This simple type specifies that its contents will contain a percentage measurement, with a trailing percent sign (U+0025).

[Example: Consider the following WordprocessingML fragment:

<w:tcPr>
  <w:tcW w:type="pct" w:w="33.3%" />
</w:pPr>

The value of the w attribute is the width of the associated table cell. end example]

This simple type’s contents are a restriction of the W3C XML Schema string datatype.

This simple type also

specifies the following restrictions:

  • This simple type’s contents shall match the following regular expression pattern: -?[0-9]+(.[0-9]+)?%.

[Note: The W3C XML Schema definition of this simple type’s content model (ST_Percentage) is located in A.6.9. end note]

Last updated on