Hi,
I defined a style for my weblink as follows:
<xsl:template match="d:link[@xrefstyle = 'web']">
<xsl:param name="content">
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
<xsl:apply-templates/>
</xsl:with-param>
</xsl:call-template>
</xsl:param>
<fo:external-graphic src="url({$weblink})" height="9pt"
content-width="scale-down-to-fit ยป/>
<xsl:text> </xsl:text>
<fo:inline color="#0066cc" text-decoration="underline">
<xsl:call-template name="anchor"/>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$content"/>
</fo:inline>
</xsl:template>
The problem is that even if my SVG file behind the variable $weblink is 10pt x
10pt, and the size of my body text is also 10pt, I can not manage to correctly
align the icon and the text: the icon is always sort of "aligned in the upper
left corner" of the container where the actual SVG icon is display. Does a
proper tie like vertical-align would work in that case, any other ideas?
Many Thanks,
JF
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]