Adding Note and Warning icons to doc output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 167
- Joined: Tue Mar 06, 2018 1:34 am
Adding Note and Warning icons to doc output
Using the Dita to Microsoft Word transformation, how can I add warning and caution icons the warning and caution notes?
I don't see an option for that in the Normal.docx file.
https://www.oxygenxml.com/doc/versions/ ... ml?hl=word
I don't see an option for that in the Normal.docx file.
https://www.oxygenxml.com/doc/versions/ ... ml?hl=word
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Adding Note and Warning icons to doc output
Hi,
I also looked in the XSLT stylesheets in the "DITA-OT3.x/plugins/com.elovirta.ooxml/docx/word/document.topic.xsl" there is a template which outputs the note type to upper case:
but there seems to be no support for icons. Maybe you can add an issue on the publishing plugin's issues list:
https://github.com/jelovirt/com.elovirta.ooxml/issues
Regards,
Radu
I also looked in the XSLT stylesheets in the "DITA-OT3.x/plugins/com.elovirta.ooxml/docx/word/document.topic.xsl" there is a template which outputs the note type to upper case:
Code: Select all
<xsl:template match="*[contains(@class, ' topic/note ')]" mode="prefix">
<w:r>
<w:rPr>
<w:caps/>
<w:b w:val="true"/>
</w:rPr>
<w:t>
<xsl:variable name="type" select="x:note-type(.)" as="xs:string"/>
<xsl:call-template name="getVariable">
<xsl:with-param name="id" select="concat(upper-case(substring($type, 1, 1)),
substring($type, 2))"/>
</xsl:call-template>
<xsl:text>:</xsl:text>
</w:t>
<!--w:tab/-->
<w:t>
<xsl:attribute name="xml:space">preserve</xsl:attribute>
<xsl:text> </xsl:text>
</w:t>
</w:r>
</xsl:template>
https://github.com/jelovirt/com.elovirta.ooxml/issues
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