I am trying to vertically align a small graphic with the top of the following text. This is a fo stylesheet for rendering xml into a pdf, using Apache's FOP parser. Here's my code, sans my failed attempts at alignment:
Has anyone else encountered (and found a solution to) this problem before?
Thanks so much!
--JavaKat
Code:
<fo:block text-align="start" font-size="10pt"
font-family = "Times Roman" font-weight="bold">
<xsl:element name="fo:external-graphic">
<xsl:attribute name="src">
C:\docs\images\small_hands.gif
</xsl:attribute>
<xsl:attribute name="content-width">
30px
</xsl:attribute>
<xsl:attribute name="content-height">
20px
</xsl:attribute>
<xsl:attribute name="width">
6.0mm
</xsl:attribute>
<xsl:attribute name="height">
4.0mm
</xsl:attribute>
</xsl:element>
<xsl:value-of select"header" />
</fo:block>
Has anyone else encountered (and found a solution to) this problem before?
Thanks so much!
--JavaKat