1.19. Element `subProcess`
Prev | 1. Reference | Next

### 1.19. Element `subProcess`

    <subProcess
      name = NMTOKEN
      parameter = string
    />

Invokes the `process` command whose name is specified by attribute `name`. Optional attribute `parameter` may be used to parametrize the behavior of the invoked process command.

This element returns the result of its last executed child element which itself returns a result (if any).

Examples:

      <command name="docb.toPSFile">
        <process>
          <subProcess name="docb.toPS" parameter='"%0" "%1" "%2" "%3"' />

          <upload base="%4">
            <copyFile file="__doc.%0" to="%4" />
          </upload>
        </process>
      </command>

      <command name="docb.toPSPrinter">
        <process>
          <subProcess name="docb.toPS" parameter='"%0" "%1" "%2" "%3"' />

          <print file="__doc.%0" printer="%4" />
        </process>
      </command>

| First process command is used to convert a DocBook document to PostScript® or to PDF.
| Second process command is used to print a DocBook document on a PostScript® or a PDF printer (after converting it to these formats, of course). Both process commands invoke `docb.toPS` which actually does the job of converting a DocBook document to PostScript® or to PDF.

Prev | Up | Next
1.18. Element `invoke` | Home | 1.20. Process variables