How does Oxygen keep auto-generated topic IDs unique?

Questions about XML that are not covered by the other forums should go here.
laurakatajisto
Posts: 4

How does Oxygen keep auto-generated topic IDs unique?

Thu Feb 08, 2018 11:45 am

We're producing DITA content which is located in multiple folders based on a product feature. Multiple authors are working on the project, and are responsible for their own folders.

We're hoping that we could use Oxygen's auto-generated topic IDs with these topics.

How does Oxygen keep the IDs unique? My team was wondering whether is it possible that the same topic ID could appear in two different folders.
sorin_carbunaru
Site Admin
Posts: 154

Re: How does Oxygen keep auto-generated topic IDs unique?

Thu Feb 08, 2018 4:51 pm

Hello,

There are probably very low chances to obtain 2 identical IDs. But, may I ask, why is it important for your team to have unique IDs everywhere? Please let us know your use-case.

IDs are usually needed for referencing elements, for creating links, but when you create a link between 2 documents, this is done by using either a URI or a key, not just the ID. When the URI-based method is used for a link between 2 files, the shortest form of the "href" can be "[filename]/[ID]", therefore it isn't mandatory for the ID to be unique in the context of the entire project.

Best wishes,
Sorin Carbunaru
oXygen XML
laurakatajisto
Posts: 4

Re: How does Oxygen keep auto-generated topic IDs unique?

Fri Feb 09, 2018 4:04 pm

It's more of a future-proofing thing than a real use case at the moment. Some discussions have been had whether certain potential publishing formats could autogenerate the name of the topic from the ID, but even in that case supplementing the ID with a suffix would help if duplicates are found.

Currently the ditamaps use URI since there's not much variation and no need for the added abstraction using keys.

Regards,
Laura

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests