Susan,
that’s a really nice "proof of concept" I don’t know il you keep on developping it but I wanted to give you some feedback atfer having installed it.
In the footer chunk, there is doc values with [**] and not [++].
So they are not interpreted and replaced by ditto.
How the [*timestamp*] is supposed to be created ??
I had to write a little snippet containing this code to get a value
$stamp = time();
return $stamp;
:-)