This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]