Users can add their own commands to Concordion.NET as extensions. User-contributed commands must use their own namespace that must not start with Concordion
.
Custom commands are automatically wrapped with a class that will notify ExceptionCaughtListeners
of any Exceptions
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 |