OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Alignment of external graphic inserted as style icon

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">
  <fo:external-graphic src="url({$weblink})" height="9pt" content-width="scale-down-to-fit »/>
  <fo:inline color="#0066cc" text-decoration="underline">
    <xsl:call-template name="anchor"/>
    <xsl:if test="@dir">
      <xsl:attribute name="direction">
          <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
    <xsl:copy-of select="$content"/>

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,

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]