Users can add their own commands to Concordion as extensions. User-contributed commands must use their own namespace that must not contain concordion.org
.
Custom commands are automatically wrapped with a class that will notify ThrowableCaughtListeners
of any Throwables
that are thrown by the command.
An extension is installed that adds the log
command in the http://myorg.org/my/extension
namespace. This command simply logs the element text.
Running a specification containing:
<div xmlns:myext="http://myorg.org/my/extension"> <p myext:log="">The answer is 42</p> </div>
logs:
Output |
---|
The answer is 42 |