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

xsl:sort and datatypes

Subject: xsl:sort and datatypes
From: Ernst Wolthaus <ernst.wolthaus@xxxxxx>
Date: Wed, 8 May 2002 08:36:58 +0200
 xsl:sort and datatypes
Hi all,

I was wondering if anyone could tell me if xsl:sort would sort the following
xml correctly: 

<?xml version="1.0"?>
<root>
 <data>
  <intNumber dt:dt="i4"
xmlns:dt="urn:schemas-microsoft-com:datatypes">1</intNumber>
 </data>
 <data>
  <intNumber dt:dt="i4"
xmlns:dt="urn:schemas-microsoft-com:datatypes">10</intNumber>
 </data>
 <data>
  <intNumber dt:dt="i4"
xmlns:dt="urn:schemas-microsoft-com:datatypes">11</intNumber>
 </data>
 <data>
  <intNumber dt:dt="i4"
xmlns:dt="urn:schemas-microsoft-com:datatypes">2</intNumber>
 </data>
 <data>
</root>

Because I get the next result:

1
10
11
2

Of course I want:

1
2
10
11

The data-type attribute of xsl:sort only support text/number/qname and I
also want to sort on datefields.

Thanks all!
Ernst Wolthaus


 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.