Docbook XSLT won't use SVG admon graphics

Here should go questions about transforming XML with XSLT and FOP.
Posts: 3

Docbook XSLT won't use SVG admon graphics

Thu Jan 22, 2015 12:07 am

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="">${frameworks}/docbook/xsl/images/</xsl:param>
<xsl:template match="*" mode="admon.graphic.extension">
<xsl:param name="">.svg</xsl:param>

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: 4144

Re: Docbook XSLT won't use SVG admon graphics

Mon Jan 26, 2015 5:28 pm


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  =  ${frameworks}/docbook/xsl/images/

Code: Select all  =  .svg

<oXygen/> XML Editor Support

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest