Hello All:
I am using this xslt file to create an .rtf file. This works
with one problem the resulting .rtf file has some formatting
problems, i.e. the two colums of text are out of alignment, looking something like this:
Jan:0.115
Feb:1.003
Mar: 0.0016 //This is the problem
Apr:1.012
Any ideas on how to fix this?
Thanks In Advance
MeonR
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="<xsl
reserve-space elements="months"/>
<xsl:strip-space elements="seasonal"/>
<xsl
utput method="text"/>
<xsl:template match="/">
<xsl:text>{\rtf1</xsl:text>
<xsl:text>Season Index</xsl:text>
<xsl:for-each select="SeasonIndex/SIDX">
<xsl:text>\par\b </xsl:text>
<xsl:value-of select="months"/><xsl:text>:</xsl:text>
<xsl:value-of select="seasonal"/>
<xsl:text>\b0\i </xsl:text>
<xsl:text>\i0\par </xsl:text>
</xsl:for-each>
<xsl:text>}</xsl:text>
</xsl:template>
</xsl:stylesheet>
"The beatings will continue until morale improves
I am using this xslt file to create an .rtf file. This works
with one problem the resulting .rtf file has some formatting
problems, i.e. the two colums of text are out of alignment, looking something like this:
Jan:0.115
Feb:1.003
Mar: 0.0016 //This is the problem
Apr:1.012
Any ideas on how to fix this?
Thanks In Advance
MeonR
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="<xsl
<xsl:strip-space elements="seasonal"/>
<xsl
<xsl:template match="/">
<xsl:text>{\rtf1</xsl:text>
<xsl:text>Season Index</xsl:text>
<xsl:for-each select="SeasonIndex/SIDX">
<xsl:text>\par\b </xsl:text>
<xsl:value-of select="months"/><xsl:text>:</xsl:text>
<xsl:value-of select="seasonal"/>
<xsl:text>\b0\i </xsl:text>
<xsl:text>\i0\par </xsl:text>
</xsl:for-each>
<xsl:text>}</xsl:text>
</xsl:template>
</xsl:stylesheet>
"The beatings will continue until morale improves