Set default value of an attribute
Post here questions and problems related to editing and publishing DITA content.
Set default value of an attribute
Hi,
We'd like to set the default value of an attribute, specifically the value of the @align attribute for an <image> element. From some older posts, it appears that the attribute is defined in commonElements.mod. We've tried modifying that file in the various plug-ins in which it resides and re-installing those plug-ins but that's had no effect. For reference, we're using a local version of the DITA-OT2.x (outside of the native oXygen distribution).
Thanks in advance
We'd like to set the default value of an attribute, specifically the value of the @align attribute for an <image> element. From some older posts, it appears that the attribute is defined in commonElements.mod. We've tried modifying that file in the various plug-ins in which it resides and re-installing those plug-ins but that's had no effect. For reference, we're using a local version of the DITA-OT2.x (outside of the native oXygen distribution).
Thanks in advance
Re: Set default value of an attribute
Hi,
It is incorrect to make changes directly to the DITA DTDs. Usually in such cases you should construct a DITA DTD specialization plugin (with custom public and system ID mappings for all your topics).
In this particular case, instead of changing the DITA DTDs to set a default attribute value for @align maybe it's easier to customize the published output using some custom XSLTs and when the @align attribute is missing on the image, treat it is if it would be aligned in a certain way.
Regards,
Radu
It is incorrect to make changes directly to the DITA DTDs. Usually in such cases you should construct a DITA DTD specialization plugin (with custom public and system ID mappings for all your topics).
In this particular case, instead of changing the DITA DTDs to set a default attribute value for @align maybe it's easier to customize the published output using some custom XSLTs and when the @align attribute is missing on the image, treat it is if it would be aligned in a certain way.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.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