3.9.3 ST_ObjID (Object ID)

In Office 2007, Object IDs are either object names or an ID number.

An object name has the following characteristics:

  • It is not an ID number.

  • There is no shape with the same name in the:

  • same worksheet, for Excel.

  • same slide, for PowerPoint.

  • same document, for Word.

  • header, for Word.

  • It is not an embedded object, for Excel and Word.

If it is an object name and contains NCR (Numeric Character Reference) characters, they are escaped using the Unicode numerical character representation escape character format _xHHHH_, where H represents a hexadecimal character. If the string already contains escaped characters in this format, then the first underscore character (_) of the escape sequence shall be escaped.

An ID number is defined by the ST_SpId simple type (§3.9.6, ST_SpId).

This simple type's contents are a restriction of the XML Schema token datatype.

This simple type also specifies the following restrictions:

  • This simple type's contents have a maximum length of 255 characters.

The following XML Schema fragment defines the contents of this simple type:

 <simpleType name="ST_ObjID">
   <restriction base="xsd:token">
     <maxLength value="255"/>