I have this and it works great:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<xsl:for-each select="bios/bio">
<div id="bios">
<div style="float:left; padding-right:12px;"><img src="bios/im/{image}"/></div>
<h4><xsl:value-of select="name"></xsl:value-of></h4>
<br />
<h5><xsl:value-of select="title"></xsl:value-of></h5>
<br /><br />
<div style="text-align:justify"><xsl:value-of select="description"/></div>
<br /><br />
<span class="bio_comment"><xsl:apply-templates select="comment"/></span>
</div>
<br /><br /><br />
</xsl:for-each>
</xsl:template>
<xsl:template match="br"><br/></xsl:template>
</xsl:stylesheet>
My problem is that I want to include xslfo as well. I tried using an include to a seperate .xsl file I tried embedding it within the transform .xsl. I’m thinking I have it, but I may be putting it in the wrong place…
BTW, here is my xslfo:
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="p">
<fo:block><xsl:apply-templates/></fo:block>
</xsl:template>
<xsl:template match="i">
<fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match="b">
<fo:inline font-style="bold"><xsl:apply-templates/></fo:inline>
</xsl:template>
</fo:root>
Very simply put, I need to have BOLD and ITALIC work using <b> <i> in the XML.
Thanks for any input