Include text-ref in ref

Fixes #716
include text-ref in DTD
Merge pull request #724 from robertatakenaka/tk_716

Tk 716