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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 2.7.2
    • Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • 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. XALANJ-2546.diff
          2 kB
          Gary D. Gregory
        2. sorting-example.zip
          5 kB
          Don Smith

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: