topic/@id uniqueness
Posted: Sat Oct 14, 2023 3:24 pm
[Question]
As you know, DITA-OT preprocessing & topic merge for PDF output handles the following problem:
[Background: Our specific requirements from user]
Based on the complex document generation requirement, we developer must input several merged middle files from multiple volume authoring and edit/generate into another merged middle file for PDF output.
(You may think this requirement as crazy. Yes, I also assume that it is not the normal PDF generation method. But surely it is needed.)
When inputting several merged middle files, we face the problem of topic/@id in them.
As described earlier, merged middle file has "unique_NNN" values for each topic/@id. These values are not unique if we must input plural merged middle file.
So, our idea is to use topic/@oid (Oxygen XML author assigned) as topic/@id. We hope topic/@oid attribute should be unique over multiple volume authoring result.
As a result, I came across the first written questions.
I know that Oxygen XML author generates topic/@id such like topic/@id="topic_vgy_ktm_czb". Also, if it is connected to CCMS system, it become such like topic/@id="ikv1639112450070" or topic/@id="GUID-3B1CE9C7-F19B-40F4-A666-63A5A94D820A".
But the prereqsite is file system based (Git repository) solution, it does not use CCMS system.
- How does each Oxygen XML author program generate topic/@id in the local file system-based environment?
- To what extent does Oxygen XML Author guarantee the uniqueness of topic/@id?
As you know, DITA-OT preprocessing & topic merge for PDF output handles the following problem:
- Same topic file names in the different folder hierarchy are processed with no problem. All of the maps and topics are merged into one middle file.
- topic/@id is replaced by "unique_NNN" notation. As a result, duplicated topic/@id in the different topic files are processed normally.
- Image references are corrected as root map relative.
[Background: Our specific requirements from user]
Based on the complex document generation requirement, we developer must input several merged middle files from multiple volume authoring and edit/generate into another merged middle file for PDF output.
(You may think this requirement as crazy. Yes, I also assume that it is not the normal PDF generation method. But surely it is needed.)
When inputting several merged middle files, we face the problem of topic/@id in them.
As described earlier, merged middle file has "unique_NNN" values for each topic/@id. These values are not unique if we must input plural merged middle file.
So, our idea is to use topic/@oid (Oxygen XML author assigned) as topic/@id. We hope topic/@oid attribute should be unique over multiple volume authoring result.
As a result, I came across the first written questions.
I know that Oxygen XML author generates topic/@id such like topic/@id="topic_vgy_ktm_czb". Also, if it is connected to CCMS system, it become such like topic/@id="ikv1639112450070" or topic/@id="GUID-3B1CE9C7-F19B-40F4-A666-63A5A94D820A".
But the prereqsite is file system based (Git repository) solution, it does not use CCMS system.