[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
ST_MacroName (Script Subroutine Name Value)
This simple type specifies a subroutine in a scripting language which may be executed based on the context of the parent XML element. The language and location of this subroutine may 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 XML Schema string datatype.
This simple type also specifies the following restrictions:
• This simple type's contents have a maximum length of 33 characters.
Referenced By |
entryMacro@val (§2.16.15); exitMacro@val (§2.16.16) |
The following XML Schema fragment defines the contents of this simple type:
<simpleType name="ST_MacroName">
<restriction base="xsd:string">
<maxLength value="33"/>
</restriction>
</simpleType>