6. Commands
| Chapter 1. Language syntax |

## 6. Commands

    command -> command_name_NCName '(' [ argument ]* ')' ';'

    argument -> XPath_expression | XML_template

Invokes command called `command_name_NCName` with specified arguments.

Predefined commands are documented in Chapter 2, Predefined commands. A user may define her own commands using `macro`.

Examples:

    set-variable("next",
                  following-sibling::node()[1][self::text() and
                                               starts-with(., "&#xA;")]);
    delete-text("^\n", "", $next);

    replace(<g:envelope>{translate(., "&#xA0;", " ")}</g:envelope>);

    unwrap-element();

5. Namespace declarations |  | 7. Conditional processing with `if`