Controlling @id generation when inserting elements in Author mode
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Controlling @id generation when inserting elements in Author mode
Here is request from one of my users.
When I insert note element in Author mode, Oxygen automatically generates following.
We want control @id generation for any elements because several elements are not referenced from xref element.
How we can do it in Oxygen customization?
When I insert note element in Author mode, Oxygen automatically generates following.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_q4w_3tg_cfc">
<title>Sample Concept</title>
<shortdesc></shortdesc>
<conbody>
<p>paragraph</p>
<note id="note_j2r_ktg_cfc">note text</note>
</conbody>
</concept>
How we can do it in Oxygen customization?
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Controlling @id generation when inserting elements in Author mode
Hi Toshihiko,
When working with a DITA topic opened in the main editor in the Author visual editing mode the main menu "DITA->ID Options" dialog contains a list of elements for which IDs are auto generated.
There is an "OXYGEN_INSTALL_DIR/frameworks/dita/resources/idGenerationDefaultOptions.xml" file containing the defaults for ID generation and it can be overwritten from a DITA framework extension:
https://www.oxygenxml.com/doc/versions/ ... on_options
Regards,
Radu
When working with a DITA topic opened in the main editor in the Author visual editing mode the main menu "DITA->ID Options" dialog contains a list of elements for which IDs are auto generated.
There is an "OXYGEN_INSTALL_DIR/frameworks/dita/resources/idGenerationDefaultOptions.xml" file containing the defaults for ID generation and it can be overwritten from a DITA framework extension:
https://www.oxygenxml.com/doc/versions/ ... on_options
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Re: Controlling @id generation when inserting elements in Author mode
Thank you Radu!
I will customize it in my framework.
I will customize it in my framework.
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
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