Concordion > Extension >

Custom Commands

Users can add their own commands to Concordion as extensions. User-contributed commands must use their own namespace that must not contain 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 namespace. This command simply logs the element text.

Running a specification containing:

<div xmlns:myext="">
<p myext:log="">The answer is 42</p>


The answer is 42