Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.2.x
-
None
-
None
-
Operating System: Solaris
Platform: Sun
-
5972
Description
When make Transformer instance with StreamSource of XSLT,
each ElemTemplateElement instance in stylesheet tree has
some information about line number, column number, tag name and so on.
But DecimalFormatProperties instance which implements xsl:decimal-format
lacks some information.
Following is example:
- line number: I got 0 with getLineNumber().
Should be valid line number. - column number: I got 0 with getColumnNumber().
Should be valid column number. - element name: I got "Unknown XSLT Element" with getTagName().
Should be "decimal-format" - element type: I got -1 with getXSLToken().
Should be org.apache.xalan.templates.Constants.ELEMNAME_DECIMALFORMAT.
[sample XSLT file]
----- =-8 ---------- =-8 ---------- =-8 ---------- =-8 -----
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://www.w3.org/TR/REC-html40">
<xsl:decimal-format name="decimalformat" decimal-separator="," grouping-
separator="." />
<xsl:template match="/">
<xsl:value-of select="format-number(123456,'#.###','decimalformat')"/>
</xsl:template>
</xsl:stylesheet>
----- =-8 ---------- =-8 ---------- =-8 ---------- =-8 -----