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 ) ; }
Sets the topic xref id to the topic database id .