Introduction
DPML is a programming language used to define a sequence of logical
NetKernel requests.
DPML provides simple sequencing, looping, conditional processing
and exception handling and translates each
instruction into a single
active:
request.
Syntax
DPML uses a syntax based on XML.
The root element of a DPML program is the XML element
idoc
and each instruction is
identified by the XML element instr
.
The following skeletal DPML program executes three unspecified
instructions in top-to-bottom sequential order:
<idoc>
<instr />
<instr />
<instr />
</idoc>
An optional namespace designation
xmlns:dpm="http://1060.org/dpm"
may be used.
An explicit namespace (dpm: in this example) must be used
as the default namespace will interfere with literal parameters.
<dpm:idoc xmlns:dpm="http://1060.org/dpm">
<dpm:instr />
<dpm:instr />
<dpm:instr />
</dpm:idoc>
Executing a DPML Program
DPML programs are executed by the DPML runtime engine accessed
with the URI active:dpml
.
The DPML runtime accepts a single parameter "operand" that
refers to the DPML program to be run.
For example the DPML program in the resource
ffcpl:/src/myprog.idoc
is executed with the following request URI:
active:dpml+operand@ffcpl:/myprog.idoc
Passing Paramaters to a DPML Program
Parameters may be passed to a DPML program.