XalanC
  1. XalanC
  2. XALANC-605

Incorrect output for xsl:number with alphanumeric characters in the format attribute

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: CurrentCVS
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      all

      Description

      Stylesheet : <xsl:template match="/">
      <out>
      <xsl:number value="123" format="***"/>

      </out>
      </xsl:template>

      According to :
      "The format attribute is split into a sequence of tokens where each token is a maximal sequence of alphanumeric characters or a maximal sequence of non-alphanumeric characters.... If the first token is a non-alphanumeric token, then the constructed string will start with that token; if the last token is non-alphanumeric token, then the constructed string will end with that token.... If there are no format tokens, then a format token of 1 is used to format all numbers"

      we should see in the output :
      <?xml version="1.0" encoding="UTF-8"?><out>**123**</out>,
      but XalanC produces:
      <?xml version="1.0" encoding="UTF-8"?><out>***123</out>

      1. patch1.diff
        0.6 kB
        Dmitry Hayes
      2. patch.diff
        0.6 kB
        Dmitry Hayes

        Activity

          People

          • Assignee:
            Dmitry Hayes
            Reporter:
            Dmitry Hayes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development