You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/09/05 08:06:36 UTC
[jira] Updated: (XALANJ-1900) Output from xslt-functions number() and format-number()
The following issue has been updated:
Updater: Brian Minchau (mailto:minchau@ca.ibm.com)
Date: Sat, 4 Sep 2004 11:05 PM
Changes:
assignee changed from Xalan Developers Mailing List
description changed from System:
Microsoft Windows 2000 [Version 5.00.2195]
JRE SUN 1.4.2_04 (build 1.4.2_04-b05)
also tested with JRE 1.4.2_02
I use xalan to create a html-document with a xml-file as data-source.
Solution:
To work correctly the functions (number() and format-number()) need as direct
parent a xsl:block os xsl:inline.
Problem:
Otherwise the numeral 0 and numbers start with numeral 9 will not printed in the
html-document. Other numbers are printed correct.
not working sample:
<xsl:template match="*" mode="formatnumber">
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')"/>
</xsl:template>
working sample:
<xsl:template match="*" mode="formatnumber">
<fo:inline>
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')" />
</fo:inline>
</xsl:template>
With a <xsl:apply-templates select="./value" mode="formatnumber" /> on the right
place.
bye
Stefan to System:
Microsoft Windows 2000 [Version 5.00.2195]
JRE SUN 1.4.2_04 (build 1.4.2_04-b05)
also tested with JRE 1.4.2_02
I use xalan to create a html-document with a xml-file as data-source.
Solution:
To work correctly the functions (number() and format-number()) need as direct
parent a xsl:block os xsl:inline.
Problem:
Otherwise the numeral 0 and numbers start with numeral 9 will not printed in the
html-document. Other numbers are printed correct.
not working sample:
<xsl:template match="*" mode="formatnumber">
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')"/>
</xsl:template>
working sample:
<xsl:template match="*" mode="formatnumber">
<fo:inline>
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')" />
</fo:inline>
</xsl:template>
With a <xsl:apply-templates select="./value" mode="formatnumber" /> on the right
place.
bye
Stefan
environment changed from Operating System: Windows NT/2K
Platform: PC to Operating System: Windows NT/2K
Platform: PC
priority changed to Blocker
Component changed to XPath function
Component changed from Xalan
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-1900?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1900
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1900
Summary: Output from xslt-functions number() and format-number()
Type: Bug
Status: Unassigned
Priority: Blocker
Project: XalanJ2
Components:
XPath function
Versions:
2.6
Assignee:
Reporter: stefan
Created: Thu, 24 Jun 2004 10:43 AM
Updated: Sat, 4 Sep 2004 11:05 PM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
System:
Microsoft Windows 2000 [Version 5.00.2195]
JRE SUN 1.4.2_04 (build 1.4.2_04-b05)
also tested with JRE 1.4.2_02
I use xalan to create a html-document with a xml-file as data-source.
Solution:
To work correctly the functions (number() and format-number()) need as direct
parent a xsl:block os xsl:inline.
Problem:
Otherwise the numeral 0 and numbers start with numeral 9 will not printed in the
html-document. Other numbers are printed correct.
not working sample:
<xsl:template match="*" mode="formatnumber">
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')"/>
</xsl:template>
working sample:
<xsl:template match="*" mode="formatnumber">
<fo:inline>
<xsl:value-of select="format-number(., '#.###.##0,#####', 'european')" />
</fo:inline>
</xsl:template>
With a <xsl:apply-templates select="./value" mode="formatnumber" /> on the right
place.
bye
Stefan
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org