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

Subject: Re: AW: [xsl] Sorting Upper-Case first. Microsoft bug?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Aug 2003 18:52:34 +0100
> *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" /> 

<xsl:stylesheet xmlns:xsl=""; 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:copy-of select="."/>


 $ 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.


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:

 XSL-List info and archive:

Current Thread