code: public static void processTopicID(final BuildData buildData, final ITopicNode topicNode, final Document doc) {
          final BaseTopicWrapper<?> topic = topicNode.getTopic();
  
          // Ignore info topics
          if (!topic.hasTag(buildData.getServerEntities().getInfoTagId())) {
              // Get the id value
              final String errorXRefID = ((SpecNode) topicNode).getUniqueLinkId(buildData.isUseFixedUrls());
  
              // Set the id
              setDOMElementId(buildData.getDocBookVersion(), doc.getDocumentElement(), errorXRefID);
          }
  
          // Add the remap parameter
          final Integer topicId = topicNode.getDBId();
          doc.getDocumentElement().setAttribute("remap", "TID_" + topicId);
      }
docs: Sets the topic xref id to the topic database id.
  
  @param buildData Information and data structures for the build.
  @param topicNode     The topic to be used to set the id attribute.
  @param doc       The document object for the topics XML.