Docbook XSLT won't use SVG admon graphics
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 3
- Joined: Thu Jan 15, 2015 11:37 pm
Docbook XSLT won't use SVG admon graphics
I'm trying to get OxygenXML to use SVG graphics for icons like the note and warning images. Right now I'm using:
<xsl:template match="*" mode="admon.graphic.path">
<xsl:param name="admon.graphics.path">${frameworks}/docbook/xsl/images/</xsl:param>
</xsl:template>
<xsl:template match="*" mode="admon.graphic.extension">
<xsl:param name="admon.graphics.extension">.svg</xsl:param>
</xsl:template>
with no success. I've confirmed that this directory does indeed contain the SVG versions of the graphics, but when I transform the XML into PDF, it appears to use the PNG instead. Has anyone been able to get this to work properly?
<xsl:template match="*" mode="admon.graphic.path">
<xsl:param name="admon.graphics.path">${frameworks}/docbook/xsl/images/</xsl:param>
</xsl:template>
<xsl:template match="*" mode="admon.graphic.extension">
<xsl:param name="admon.graphics.extension">.svg</xsl:param>
</xsl:template>
with no success. I've confirmed that this directory does indeed contain the SVG versions of the graphics, but when I transform the XML into PDF, it appears to use the PNG instead. Has anyone been able to get this to work properly?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Docbook XSLT won't use SVG admon graphics
Post by sorin_ristache »
Hello,
You don't need to add XSLT code for that, you just need to set two parameters on the Parameters tab of the dialog box for editing a DocBook transformation:
You don't need to add XSLT code for that, you just need to set two parameters on the Parameters tab of the dialog box for editing a DocBook transformation:
Code: Select all
admon.graphics.path = ${frameworks}/docbook/xsl/images/
Code: Select all
admon.graphics.extension = .svg
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
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