<xsl:preserve-space elements="bib:*" />
<xdoc:short>Output driver for FO. Needs to be enhanced, since I don’t know
FO well at all.</xdoc:short>
<xdoc:svnId>$Id: out-driver-fo.xsl.src.html,v 1.2 2005/11/21 22:23:53 dnw Exp $</xdoc:svnId>
</xdoc:doc>
<xsl:template match="bib:p[@class='bibref']" mode="output-fo">
<fo:block id="{@id}" class="bibref">
<xsl:apply-templates mode="output-fo" />
</fo:block>
</xsl:template>
<xsl:template match="bib:span" mode="output-fo">
<fo:inline class="{@class}">
<xsl:apply-templates select="@font-weight" mode="output-fo" />
<xsl:apply-templates select="@font-style" mode="output-fo" />
<xsl:apply-templates mode="output-fo" />
</fo:inline>
</xsl:template>
<xsl:template match="bib:a" mode="output-fo">
<fo:basic-link class="{@class}" internal-destination="{@href}">
<xsl:apply-templates select="@font-weight" mode="output-fo" />
<xsl:apply-templates select="@font-style" mode="output-fo" />
<xsl:apply-templates mode="output-fo" />
</fo:basic-link>
</xsl:template>
<xsl:template match="bib:span/@font-weight" mode="output-fo">
<xsl:attribute name="font-weight">
<xsl:value-of select="." />
</xsl:attribute>
</xsl:template>
<xsl:template match="bib:span/@font-style" mode="output-fo">
<xsl:attribute name="font-style">
<xsl:value-of select="." />
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
v


