[
https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191548#comment-13191548
]
Don Smith edited comment on XALANJ-2546 at 1/23/12 10:24 PM:
-------------------------------------------------------------
I have attached sorting-examples.zip which contains a simple alphabet sorting
xsl, plus three alphabet files. The sorting seems to work correctly except in
the -xsltc case, where the last letter in Polish looks like an L, instead of a
Z.
I have also attached the stylesheet from our application that does not work
correctly (we compile all of our stylesheets using xsltc). Search for the $lang
parameter to see the sorts that don't work properly with Russian and Polish
names, even though the proper language code is passed to the stylesheet at
runtime.
was (Author: dhsmith):
This file contains a simple alphabet sorting xsl, plus three alphabet
files. The sorting seems to work correctly except in the -xsltc case, where the
last letter in Polish looks like an L, instead of a Z.
I have also attached the stylesheet from our application that does not work
correctly (we compile all of our stylesheets using xsltc). Search for the $lang
parameter to see the sorts that don't work properly with Russian and Polish
names, even though the proper language code is passed to the stylesheet at
runtime.
> xsl:sort lang attribute ignores parameter value, only hard-coding works
> -----------------------------------------------------------------------
>
> Key: XALANJ-2546
> URL: https://issues.apache.org/jira/browse/XALANJ-2546
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Components: Xalan
> Affects Versions: 2.7.1
> Environment: java version "1.6.0_20", Xalan 2.7.1
> Reporter: Don Smith
> Attachments: sorting-example.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]