add DocBook namespace; update refentry ref.foo IDs => r.foo