<
xsl:
stylesheet xmlns:db="
http://docbook.org/ns/docbook"
xmlns:cite="
http://purl.org/NET/xbiblio/cite"
xmlns:fo="
http://www.w3.org/1999/XSL/Format"
xmlns:bib="
http://purl.org/NET/xbiblio/citeproc"
xmlns:xdoc="
http://www.pnp-software.com/XSLTdoc"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="
db xdoc xs bib cite"
version="
2.0">
<
xsl:
preserve-space elements="
bib:*" />
<
xdoc:
doc type="
stylesheet">
<
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 74 2005-02-06 14:16:14Z darcusb $</
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