Testing a group enabling expression

In a user-defined pattern, test an XPath expression that is used for enabling parameter groups.

Before you begin

Before you can complete this task, you must have completed the following tasks:

Procedure

To test your XPath expression:

  1. If the Enable tab in the Edit Group window is not already open, complete the following steps to open the tab:
    1. In the Pattern Configuration tab of the Pattern Authoring editor, select the parameter group containing the XPath expression that you want to test and click Edit.
      The Edit Group window opens.
    2. Click the Enable tab.
  2. To test the expression, click Evaluate.
    The expression is evaluated by using the values in the Test Values column of the Pattern Parameters section, and the result is shown in the Result field. The result shows whether the parameter group is enabled or disabled, and the value of the expression is shown in parentheses. If the value is true, the associated group is enabled; if the value is false, the group is disabled. Use the following table to determine the value of your XPath expression.
    Result data type Evaluates to true Evaluates to false
    Boolean true false
    Numeric Any non-zero value 0 or 0.0
    String Any string that returns true with a match that is not case-sensitive Any string that does not return true with a match that is not case-sensitive
  3. To change the test value for a parameter, select the parameter in the Pattern Parameters section and enter the required test value in the Test value field. Click Set.
    The new test value is shown in the Pattern Parameters section.
  4. Repeat steps 2 and 3, as required, to test the XPath expression.
    If you want to modify the expression, see Enabling parameter groups.
  5. When you have finished testing the expression, click OK.
    The Edit Group window closes.