Suggestion from Nick Wood, use current.docid

Use of <currentDocid>book</currentDocid> in the configuration for the
execution resolves the problem (at least for the internal link).