Fixed font logic.

This commit is contained in:
Rich 2009-09-17 18:09:35 +00:00
parent cccef00ebd
commit bb4825939e

View File

@ -35,15 +35,21 @@
<xsl:template match="Style"> <xsl:template match="Style">
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0"> <xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
<Font> <Font>
<xsl:attribute name="Family"> <xsl:if test="string-length(./FontFamily)">
<xsl:value-of select="./FontFamily"/> <xsl:attribute name="Family">
</xsl:attribute> <xsl:value-of select="./FontFamily"/>
<xsl:attribute name="Size"> </xsl:attribute>
<xsl:value-of select="./FontSize"/> </xsl:if>
</xsl:attribute> <xsl:if test="string-length(./FontSize)">
<xsl:attribute name="Style"> <xsl:attribute name="Size">
<xsl:value-of select="./FontStyle"/> <xsl:value-of select="./FontSize"/>
</xsl:attribute> </xsl:attribute>
</xsl:if>
<xsl:if test="string-length(./FontStyle)">
<xsl:attribute name="Style">
<xsl:value-of select="./FontStyle"/>
</xsl:attribute>
</xsl:if>
</Font> </Font>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>