It may be that you just need to replace this:
axf:outline-title="$otitle"
with this:
axf:outline-title="{$otitle}"
When specifying attributes in literal result elements such as fo:block, you can't just use a variable reference, it has to be an attribute value template.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net