Automatic ID generation in web author
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 29
- Joined: Tue Feb 25, 2014 12:14 am
Automatic ID generation in web author
Post by david.badger »
Hi,
I'm looking for a way to enable automatic ID attribute generation for DITA documents in the web author. It doesn't look like this is currently supported.
If not, any guidance on the best way to accomplish this in the web author?
Thanks
I'm looking for a way to enable automatic ID attribute generation for DITA documents in the web author. It doesn't look like this is currently supported.
If not, any guidance on the best way to accomplish this in the web author?
Thanks
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Automatic ID generation in web author
Post by cristi_talau »
Hello,
I tested the ID generation with Web Author on a simple DITA topic. By default, it generates IDs for several elements like images, tables, etc.
For a custom behavior you can alter the framework associated with your document type. More information here [1].
Let me know if you encounter any problems.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... works.html
I tested the ID generation with Web Author on a simple DITA topic. By default, it generates IDs for several elements like images, tables, etc.
For a custom behavior you can alter the framework associated with your document type. More information here [1].
Let me know if you encounter any problems.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... works.html
-
- Posts: 29
- Joined: Tue Feb 25, 2014 12:14 am
Re: Automatic ID generation in web author
Post by david.badger »
I was unable to find specific instructions for setting up ID generation, but I did the following.
I set up DITA ID Options in the desktop editor (added "p" element to the list), then zipped up the DITA framework folder and uploaded to the web author. Then I restarted tomcat. IDs still are not being generated.
I set up DITA ID Options in the desktop editor (added "p" element to the list), then zipped up the DITA framework folder and uploaded to the web author. Then I restarted tomcat. IDs still are not being generated.
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Automatic ID generation in web author
Post by cristi_talau »
Hello,
I investigated the problem a little bit more and here is how ID generation is configured:
There are two places where the elements for which IDs are generated can be configured:
1. In the framework idGenerationDefaultOptions.xml file [1]
2. In the Oxygen options file. When you use the "ID generation options" dialog in Oxygen desktop, it saves your input in the options file. You can view this file using "Preferences" > "Export Global Options".
The second configuration takes precedence.
The problem is that the second configuration is not included when you zip the DITA framework. In theory, you could follow the procedure here [2] to pass those options to Web Author. However, Web Author is not able to load the ID generation configuration from the options file. I filed an internal issue to fix this.
So, your only choice right now is to use the first approach and modify the idGenerationDefaultOptions.xml in the DITA framework, then zip the framework and upload it in Web Author.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... e-ids.html
[2] https://www.oxygenxml.com/doc/versions/ ... tions.html
I investigated the problem a little bit more and here is how ID generation is configured:
There are two places where the elements for which IDs are generated can be configured:
1. In the framework idGenerationDefaultOptions.xml file [1]
2. In the Oxygen options file. When you use the "ID generation options" dialog in Oxygen desktop, it saves your input in the options file. You can view this file using "Preferences" > "Export Global Options".
The second configuration takes precedence.
The problem is that the second configuration is not included when you zip the DITA framework. In theory, you could follow the procedure here [2] to pass those options to Web Author. However, Web Author is not able to load the ID generation configuration from the options file. I filed an internal issue to fix this.
So, your only choice right now is to use the first approach and modify the idGenerationDefaultOptions.xml in the DITA framework, then zip the framework and upload it in Web Author.
Best,
Cristian
[1] https://www.oxygenxml.com/doc/versions/ ... e-ids.html
[2] https://www.oxygenxml.com/doc/versions/ ... tions.html
-
- Posts: 29
- Joined: Tue Feb 25, 2014 12:14 am
Re: Automatic ID generation in web author
Post by david.badger »
Thank you, I had no idea the idGenerationDefaultOptions.xml file existed. Adding the necessary DITA elements to this file in the DITA framework and uploading to the web author works, and IDs are now being auto-generated.
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service