In addition to DPML, NetKernel supports a wide range of traditional dynamic languages (Groovy, Ruby, Python, etc.) as well as domain specific languages.
DPML scripts use an XML syntax since it is easy to generate dynamically (see the DPML Guide for details). Because requests are fundamental to NetKernel, a standard declarative request syntax is used by DPML and supported across all NetKernel tools.
DPML is a small language, consisting of support for requests and a small set of operators. Inherently, DPML is a functional, lazily-evaluated language that supports closures and a set of control structures (such as if-then-else and try-catch) and the sequence - used for a sequential style of programming.
We recast the
in the form of a DPML script.
This script uses a sequence with a single child,
a request for the resource
NetKernel includes a programming language playpen that allows you to create, edit and run DPML scripts. Click this link to switch to the DPML playpen with this script pre-loaded.
Try changing the res:/greeting URI in the
This example recasts the second example resource transformation in a DPML script.
Click this link to load this program into the playpen.