cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27275] - xsl:sort not sorting correctly
Date Fri, 27 Feb 2004 17:13:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27275

xsl:sort not sorting correctly





------- Additional Comments From khanh.vo@antin.com  2004-02-27 17:13 -------
It does the same thing. Let me explain what my code is doing exactly.

My sample XML is for testing reasons only. With real data, it would look more 
like :
<Para>2:This paragrah is about chapter two....etc.</Para>  
<Para>1:This paragrah is about chapter one....etc.</Para>  

I am substring-before(current(),':') to parse the "1" and "2" out from the 
string. I am using the number to sort which paragraph gets display 
first..etc. ":" is just a delimeter. 
When I display the content, I am displaying everthing after the ":", using 
substring-after(current(),':')

By the way, I've tested using XML Spy. 

I hope this helps. Are you able to reproduce this?

Mime
View raw message