resourceid in single HTML topic
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 12
- Joined: Fri Nov 13, 2020 9:24 pm
resourceid in single HTML topic
Hello,
I am generating a single HTML file with all of my topics from my ditamap compiled using the DITA Map XHTML transform and a chunk to-content attribute on my starting <map> element.
Each topic in the ditamap has a resourceid set:
Is there any way I could get that <resourceid> metadata to appear as an attribute in the beginning <dev> tag in each topic in the compiled HTML file?
Right now the <div> gets transformed as following:
But it would be a lot more useful if it appeared like the following (or something similar) because our developers use this file and these IDs to map context-sensitive help:
Thanks,
Jesse
I am generating a single HTML file with all of my topics from my ditamap compiled using the DITA Map XHTML transform and a chunk to-content attribute on my starting <map> element.
Each topic in the ditamap has a resourceid set:
Code: Select all
<prolog>
<resourceid id="5040" appname="platform"/>
</prolog>
Right now the <div> gets transformed as following:
Code: Select all
<div class="nested0" aria-labelledby="ariaid-title1" id="cm-duplicate-case">
Code: Select all
<div resourceid id="5040" appname="platform">
Jesse
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: resourceid in single HTML topic
Hi Jesse,
Maybe you can do this with an XSLT customization.
In the XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.xhtml/xsl/xslhtml/dita2htmlImpl.xsl
there is an XSLT template which outputs the topics:
maybe you can create a DITA OT plugin which adds an extra XSLT stylesheet for XHTML processing that overrides this base XSLT stylesheet and makes the appropriate changes to it.
As an example this DITA OT plugin adds XSLT processing for HTML5, XHTML and XSL-FO:
https://github.com/oxygenxml/dita-embed-html-xslfo
and a topic about installing a DITA OT plugin:
https://www.oxygenxml.com/doc/versions/ ... lugin.html
Regards,
Radu
Maybe you can do this with an XSLT customization.
In the XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.xhtml/xsl/xslhtml/dita2htmlImpl.xsl
there is an XSLT template which outputs the topics:
Code: Select all
<xsl:template match="*[contains(@class, ' topic/topic ')]" mode="child.topic" name="child.topic">
As an example this DITA OT plugin adds XSLT processing for HTML5, XHTML and XSL-FO:
https://github.com/oxygenxml/dita-embed-html-xslfo
and a topic about installing a DITA OT plugin:
https://www.oxygenxml.com/doc/versions/ ... lugin.html
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