php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24373 DomXsltStylesheet->process and xsl:sort
Submitted: 2003-06-28 08:10 UTC Modified: 2003-06-28 10:30 UTC
From: grest at interia dot pl Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.2 OS: WinXp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: grest at interia dot pl
New email:
PHP Version: OS:

 

 [2003-06-28 08:10 UTC] grest at interia dot pl
Description:
------------
There is a problem, with 
<xsl:sort select="TITLE"  data-type="text" lang="pl"/>.
The nodes with Polish special character aren`t sorting correctly. They are placed at the end of list.
It seems, that fucntion DomXsltStylesheet->process doesn`t work good.



Reproduce code:
---------------
a piece of xsl file: filmy.xsl
...
<xsl:apply-templates>
   <xsl:sort select="TITLE"  data-type="text" lang="pl"/>
</xsl:apply-templates>
...
fragment of php script
...
$filename = "filmy.xsl";
$xmldoc = domxml_open_file("filmy.xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result =  $xsldoc->process($xmldoc);
...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-28 10:30 UTC] rrichards@php.net
This is/was a known libxslt issue. You can try version 1.0.24 or higher as xsl:sort with lang attribute was worked on, but I cant say for sure if this will solve your problem.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 07:01:24 2020 UTC