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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC