Hi! Can someone tell me how to format in Gnumeric Numeric Data types. I need to output in some cells float with 4 decimals. Example: 100.2563
I already found the format tag in Gnumeric format, but this does not work. Here a snip of the xsl I am using to do that. Its based on the sample docs + some adds. I already know that there are 2 types of numeric data this is setted with the ValueType attribute of the <gmr:Cell/> element. Another attribute of <gmr:Cell/> is ValueFormat. But this is the ONE that I dont not know how to operate. I search on Google.com more info about the Gnumeric format. But too few documents and some of them are to old. Please, help me. Thanks in advance, Antonio Gallardo. <gmr:Cell> <xsl:attribute name="ValueType"> <xsl:choose> <xsl:when test="@numeric=1">30</xsl:when> <xsl:when test="@numeric=2">40</xsl:when> <xsl:otherwise>60</xsl:otherwise> </xsl:choose> </xsl:attribute> <!-- Field format --> <xsl:if test="@format"> <xsl:attribute name="ValueFormat"><xsl:value-of select="@format"/></xsl:attribute> </xsl:if> <xsl:attribute name="Col"> <xsl:value-of select="@col"/> </xsl:attribute> <xsl:attribute name="Row"> <xsl:choose> <xsl:when test="@row"> <xsl:value-of select="@row + 6"/> </xsl:when> <xsl:when test="@header_row"> <xsl:value-of select="@header_row"/> </xsl:when> </xsl:choose> </xsl:attribute> <gmr:Content> <xsl:choose> <xsl:when test="child::node()=formato-fecha"> <xsl:apply-templates select="child::node()"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </gmr:Content> </gmr:Cell> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>