Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 3:57
protectorHeath Stewart19-May-04 3:57 
GeneralRe: Combo Box Pin
sreejith ss nair19-May-04 4:07
sreejith ss nair19-May-04 4:07 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 5:01
protectorHeath Stewart19-May-04 5:01 
GeneralRe: Combo Box Pin
sreejith ss nair19-May-04 16:52
sreejith ss nair19-May-04 16:52 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 18:33
protectorHeath Stewart19-May-04 18:33 
GeneralRe: Combo Box Pin
sreejith ss nair19-May-04 19:03
sreejith ss nair19-May-04 19:03 
GeneralRe: Combo Box Pin
Heath Stewart19-May-04 19:08
protectorHeath Stewart19-May-04 19:08 
GeneralSorting with Xsl Pin
bertcox19-May-04 3:16
bertcox19-May-04 3:16 
Hello,

i'm sorting my Xml-file with xsl. Works fine but when i want to sort my column descending, he doesn't do it. It's exactly the same as ascending. What am i doing wrong then?


XslTransform xslt = new XslTransform();
xslt.Load(xslFile, null,null);
xslt.Transform(filePath,filePath,null);
dsT.Clear();
dsT.ReadXml(filePath);


My xsl file looks like this

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()">
<xsl:sort data-type="text" select="name" order = "descending" />
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

My xml file looks like this

<?xml version="1.0" encoding="utf-8"?>
<packageconfig version="1.0">
<tables>
<table name="TransMst">
<description />
<tablegroup>programs</tablegroup>
</table>
<table name="UserCmp">
<description />
<tablegroup>settings</tablegroup>
</table>
<table name="UserPrf">
<description />
<tablegroup>settings</tablegroup>
</table>
</tables>
</packageconfig>
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 3:39
protectorHeath Stewart19-May-04 3:39 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 3:56
bertcox19-May-04 3:56 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 4:04
protectorHeath Stewart19-May-04 4:04 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 4:16
bertcox19-May-04 4:16 
GeneralRe: Sorting with Xsl Pin
Heath Stewart19-May-04 5:02
protectorHeath Stewart19-May-04 5:02 
GeneralRe: Sorting with Xsl Pin
bertcox19-May-04 5:07
bertcox19-May-04 5:07 
Generalregd treeView control Pin
karteek19-May-04 2:50
karteek19-May-04 2:50 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:04
mveDave Kreskowiak19-May-04 3:04 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:06
karteek19-May-04 3:06 
GeneralRe: regd treeView control Pin
Dave Kreskowiak19-May-04 3:11
mveDave Kreskowiak19-May-04 3:11 
GeneralRe: regd treeView control Pin
karteek19-May-04 3:29
karteek19-May-04 3:29 
GeneralStarting a new process from a windows service. Pin
Klok19-May-04 1:28
Klok19-May-04 1:28 
GeneralRe: Starting a new process from a windows service. Pin
Aryadip19-May-04 2:07
Aryadip19-May-04 2:07 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:16
Klok19-May-04 4:16 
GeneralRe: Starting a new process from a windows service. Pin
Dave Kreskowiak19-May-04 2:23
mveDave Kreskowiak19-May-04 2:23 
GeneralRe: Starting a new process from a windows service. Pin
Klok19-May-04 4:14
Klok19-May-04 4:14 
GeneralRe: Starting a new process from a windows service. Pin
Heath Stewart19-May-04 4:24
protectorHeath Stewart19-May-04 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.