Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2546

xsl:sort lang attribute ignores parameter value, only hard-coding works

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.7.2
    • Component/s: Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
      None
    • Environment:
      java version "1.6.0_20", Xalan 2.7.1

      Description

      I have an XSL stylesheet that uses xsl:sort for a list of names. I added the lang attribute to the sort, using a variable passed to the stylesheet for its value: lang="{$locale}". When sorting a list of Russian names, the ordering is incorrect. I can see that the parameter value is present and correct in the stylesheet as it executes by using an xsl:message statement. When I hard-code the value of lang to ru (lang="ru"), the sort works correctly. This defect cause improper sorting in Russian and Polish, a defect in our application.

        Attachments

        1. sorting-example.zip
          5 kB
          Don Smith
        2. XALANJ-2546.diff
          2 kB
          Gary Gregory

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dhsmith Don Smith
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: