17.18.51 ST_MacroName

This simple type specifies a subroutine in a scripting language which can be executed based on the context of the parent XML element. The language and location of this subroutine can be determined using any method desired by an application.

[Example: Consider the following WordprocessingML fragment for the properties of a form field:

<w:ffData>
  <w:exitMacro w:val="TestExitFunction" />
</w:ffData>

The exitMacro element specifies that any application which processes this file should attempt to locate and execute a scripting subroutine called TestExitFunction when the contents of the form field are exited. If this subroutine cannot be located or executed, then this setting is silently ignored. 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 have a maximum length of 33 Unicode scalar values.

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

Last updated on