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">1
    <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">2
    <process>
      <subProcess name="docb.toPS" parameter='"%0" "%1" "%2" "%3"' />

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

First process command is used to convert a DocBook document to PostScript® or to PDF.

2

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.