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

Re: AW: Sorting Upper-Case first. Microsoft bug?

Subject: Re: AW: Sorting Upper-Case first. Microsoft bug?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Aug 2003 18:52:34 +0100
Re: AW:  Sorting Upper-Case first. Microsoft bug?
> *It would be interesting to know how Saxon implements
> this behaviour..* if M. Kay will be kind to answer..

He probably will but...

 <recordset name="">
     <row ReturnValue="0" Store_ID="7" Location="WA4135"  />
     <row ReturnValue="0" Store_ID="5" Location="wA4131"  />
     <row ReturnValue="0" Store_ID="6" Location="WA4133"  />
     <row ReturnValue="0" Store_ID="8" Location="wA4136"  />
     <row ReturnValue="0" Store_ID="9" Location="WA4136"  />
     <row ReturnValue="0" Store_ID="10" Location="WA4138" />
     <row ReturnValue="0" Store_ID="11" Location="WA4139" /> 
 </recordset>


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>

<xsl:template match="recordset">
<xsl:for-each select="row">
<xsl:sort select="@Location" 
  data-type="text" order="ascending" case-order="upper-first"/>
<xsl:text>&#10;</xsl:text>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>



 $ saxon sort.xml sort.xsl
<?xml version="1.0" encoding="utf-8"?>
<row ReturnValue="0" Store_ID="5" Location="wA4131"/>
<row ReturnValue="0" Store_ID="6" Location="WA4133"/>
<row ReturnValue="0" Store_ID="7" Location="WA4135"/>
<row ReturnValue="0" Store_ID="9" Location="WA4136"/>
<row ReturnValue="0" Store_ID="8" Location="wA4136"/>
<row ReturnValue="0" Store_ID="10" Location="WA4138"/>
<row ReturnValue="0" Store_ID="11" Location="WA4139"/>


ie it gets the same result as reported for other processors.

I _still_ claim this is a bug though.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.