This documentation is archived and is not being maintained.

match Attribute (errorCondition Element)

Office 2007

Identifies the XML Document Object Model (DOM) nodes on which the custom validation is declared.

Type

xsd:string

Remarks

The match attribute is a required attribute of the errorCondition element.

Example

The following is an example of the match attribute as it is used in the errorCondition element:

<xsf:customValidation>
   <xsf:errorCondition
      match="/exp:expenseReport"
      expressionContext="exp:reportDate"
      expression="msxsl:string-compare(., ../exp:startDate) < 0 and ../exp:startDate != """
      showErrorOn=".">
      <xsf:errorMessage
         type="modeless"
         shortMessage="The report date occurs before the end of the expense period.">
         The report date occurs before the end of the expense period. Verify that this is correct.
      </xsf:errorMessage> 
   </xsf:errorCondition>
</xsf:customValidation>


Show: