[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How do I not ignore whitespace when sorting?

Subject: How do I not ignore whitespace when sorting?
From: "Mark Wilson" <drmark@xxxxxxxxxxxxxxx>
Date: Sun, 18 Dec 2005 10:29:12 -0500
xslt ignore cdata
Thanks for all the help with my previous question. This is my first week with XSLT, so please forgive my not knowing where to look. I have tracked down many comments on sorting, but failed to find one to answer the following.

I am trying to sort a library subject catalog. I finally realized that the default <xsl:sort> was ignoring whitespace within the value of the element. The order I get is:
Catalogs. Austria
Catalogs -- Zepplins


when I what I want is:
Catalogs -- Zepplins
Catalogs. Austria.
( for the *space* at the end of 'catalogs ' to file before the *period* at the end of 'catalogs.'


I was able to demonstrate to myself that white space is ignored when I inserted a *space within* the word 'cat alogs' and still got this result:
Catalogs. Austria
Cat alogs -- Zepplins


Since this means that everyone would have serious problems sorting things like "Art tissue" and Artisians", I assume there must be a way.
Can I, and if so how do I, tell <xsl:sort> not to ignore whitespace? Do I need a special external colation?
Thanks,
Mark


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.