Fixed font logic.
This commit is contained in:
1 parent
cccef00ebd
commit
bb4825939e
1 file changed
+15
-9
@@ -35,15 +35,21 @@
|
||||
<xsl:template match="Style">
|
||||
<xsl:if test="string-length(./FontFamily)+string-length(./FontSize)+string-length(./FontStyle)>0">
|
||||
<Font>
|
||||
<xsl:attribute name="Family">
|
||||
<xsl:value-of select="./FontFamily"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="Size">
|
||||
<xsl:value-of select="./FontSize"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="Style">
|
||||
<xsl:value-of select="./FontStyle"/>
|
||||
</xsl:attribute>
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user