I'm working on a document that uses the 40051 DTD. It has many figure and table links. The generated text for the table links works, but it doesn't work for the figure links. For example, xref tableid points to table id and creates Table 1, Table 2, and so on. But xref figid points to figure id and always creates Figure 0. The linking behavior works fine for both kinds of links but the generated text differs.