Fixed font logic.
This commit is contained in:
parent
cccef00ebd
commit
bb4825939e
@ -35,15 +35,21 @@
|
||||
<xsl:template match="Style">
|
||||
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
|
||||
<Font>
|
||||
<xsl:if test="string-length(./FontFamily)">
|
||||
<xsl:attribute name="Family">
|
||||
<xsl:value-of select="./FontFamily"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(./FontSize)">
|
||||
<xsl:attribute name="Size">
|
||||
<xsl:value-of select="./FontSize"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(./FontStyle)">
|
||||
<xsl:attribute name="Style">
|
||||
<xsl:value-of select="./FontStyle"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</Font>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user