You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Don Smith (Created) (JIRA)" <xa...@xml.apache.org> on 2011/11/14 19:32:51 UTC

[jira] [Created] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

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


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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Adam Jez (Commented) (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191182#comment-13191182 ] 

Adam Jez commented on XALANJ-2546:
----------------------------------

Could we get feedback regarding this defect?
                
> 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
>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Tarik Baki (Commented) (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167504#comment-13167504 ] 

Tarik Baki commented on XALANJ-2546:
------------------------------------

Could we get feedback on this?

                
> 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
>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Adam Jez (Commented) (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256383#comment-13256383 ] 

Adam Jez commented on XALANJ-2546:
----------------------------------

When could we get any feedback regarding this defect? 
                
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Gary D. Gregory (Commented) (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191201#comment-13191201 ] 

Gary D. Gregory commented on XALANJ-2546:
-----------------------------------------

Can you provide a sample input document, XSL and expected output document?

Better yet, a unit test?
                
> 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
>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Resolved] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Tim Williams (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Williams resolved XALANJ-2546.
----------------------------------

    Resolution: Fixed

Fixed - see Gary's latest comment.
                
> 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: XALANJ-2546.diff, 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Adam Jez (Commented) (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225998#comment-13225998 ] 

Adam Jez commented on XALANJ-2546:
----------------------------------

When could we get feedback regarding this defect?
                
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Gary D. Gregory (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291442#comment-13291442 ] 

Gary D. Gregory commented on XALANJ-2546:
-----------------------------------------

Thank you for the example test. I've ported these to the Xalan test framework as:

{noformat}
commit -m "Test XALANJ-2546 xsl:sort lang attribute ignores parameter value, only hard-coding works...." -N (13 paths specified)
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-english.param
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-english.xml
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-english.xsl
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-polish.param
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-polish.xml
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-polish.xsl
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-russian.param
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-russian.xml
    Adding         C:/svn/org/apache/xalan/test/tests/conf/sort/sort-alphabet-russian.xsl
    Sending        C:/svn/org/apache/xalan/test/tests/conf-gold
    Adding         C:/svn/org/apache/xalan/test/tests/conf-gold/sort/sort-alphabet-english.out
    Adding         C:/svn/org/apache/xalan/test/tests/conf-gold/sort/sort-alphabet-polish.out
    Adding         C:/svn/org/apache/xalan/test/tests/conf-gold/sort/sort-alphabet-russian.out
    Transmitting file data ...
    Committed revision 1347840.{noformat}

See the param files for instructions.

To see the tests pass for TRAX:

Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang ru 

To see the same tests fail for XSLTC:

Run org.apache.qetest.xsl.StylesheetTestletDriver -goldDir tests/conf-gold -param.lang ru -flavor xsltc

Make sure you have the "output" directory on the classpath.

Looking at {{org.apache.xalan.xsltc.compiler.Sort}}, it seems clear that _lang is not coded right because it is not a {{AttributeValue}}.

The attached patch fixes that BUT does not fix the issue. The behavior appears unchanged.

This requires more digging or help from others.

It would be interesting to know if XSLTC can deal with /any/ input parameters or if this is isolated to the sort class.

                
> 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: XALANJ-2546.diff, 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Issue Comment Edited] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Don Smith (Issue Comment Edited) (JIRA)" <xa...@xml.apache.org>.
    [ 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Gary D. Gregory (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291064#comment-13291064 ] 

Gary D. Gregory commented on XALANJ-2546:
-----------------------------------------

I'll take a look at this tonight.
                
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Gary D. Gregory (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13292462#comment-13292462 ] 

Gary D. Gregory commented on XALANJ-2546:
-----------------------------------------

Fixed in SVN: Committed revision 1348522.
                
> 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: XALANJ-2546.diff, 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] [Commented] (XALANJ-2546) xsl:sort lang attribute ignores parameter value, only hard-coding works

Posted by "Adam Jez (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286421#comment-13286421 ] 

Adam Jez commented on XALANJ-2546:
----------------------------------

When could we get any feedback regarding this defect? 
                
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org