Hi,
I'm using the following XSL code for transformation.
<TsYYYYMMDD>
<xsl:number value="Year" format="0001" />
<xsl:number value="Month" format="01" />
<xsl:number value="Day" format="01" />
</TsYYYYMMDD>
...
<xsl:template match="Hour">
<TsHour>
<xsl:number value="." format="01" />
</TsHour>
</xsl:template>
<xsl:template match="Minute">
<TsMinute>
<xsl:number value="." format="01" />
</TsMinute>
</xsl:template>
<xsl:template match="Second">
<TsSecond>
<xsl:number value="." format="01" />
</TsSecond>
</xsl:template>
The problem occurs when the value for any of tags is a zero. In that
case, the transformed value returned is '0' instead of '00', while it
works fine for any other numbers.
I started hitting this problem after I linked my code with Xalan 1.9; it was working fine for Xalan 1.8.
Anything that I'm missing here?
Regards,
Ahmed.
