Click here to Skip to main content
15,904,153 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionConfigurationManager Pin
econner24-Nov-07 11:17
econner24-Nov-07 11:17 
QuestionUse XML to define SQL Server security? Pin
Clive Richardson22-Nov-07 2:31
Clive Richardson22-Nov-07 2:31 
Questioncode for creating a table using xml Pin
ayyappa swamy21-Nov-07 23:28
ayyappa swamy21-Nov-07 23:28 
AnswerRe: code for creating a table using xml Pin
J4amieC22-Nov-07 3:16
J4amieC22-Nov-07 3:16 
AnswerRe: code for creating a table using xml Pin
XML-Gene30-Nov-07 18:44
XML-Gene30-Nov-07 18:44 
QuestionCreate a new nested branch efficiently with DOM Pin
Nick Alexeev20-Nov-07 8:57
professionalNick Alexeev20-Nov-07 8:57 
AnswerRe: Create a new nested branch efficiently with DOM Pin
Prateek G20-Nov-07 20:13
Prateek G20-Nov-07 20:13 
QuestionHow to sort all data use xslt? Pin
guiqul16319-Nov-07 22:08
guiqul16319-Nov-07 22:08 
One page show 4 records. Then the first page should show as follow:
1 w
2 a
3 l
5 z
But in fact, the result like this:
1 w
2 a
3 l
9 n

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="SortTest.xsl"?>
<Table>
<RecordSet Myid="2" title="a">2 a</RecordSet>
<RecordSet Myid="1" title="w">1 w</RecordSet>
<RecordSet Myid="3" title="l">3 l</RecordSet>
<RecordSet Myid="9" title="n">9 n</RecordSet>
<RecordSet Myid="7" title="m">7 m</RecordSet>
<RecordSet Myid="6" title="k">6 k</RecordSet>
<RecordSet Myid="4" title="z">5 z</RecordSet>
</Table>

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://dotnet.aspx.cc/" exclude-result-prefixes="msxsl user">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:template match="/">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<xsl:for-each select="./Table/RecordSet[position() < 5]">
<xsl:sort select="./@Myid" data-type="number" order="ascending"/>
<tr>
<td>
<xsl:value-of select="."/>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>

How to resolve it?


=========================================
Make friends with you all.
My Blog, welcome

天气常如二三月,花技不断四时春。

AnswerRe: How to sort all data use xslt? Pin
Prateek G19-Nov-07 22:58
Prateek G19-Nov-07 22:58 
GeneralRe: How to sort all data use xslt? Pin
guiqul16320-Nov-07 13:20
guiqul16320-Nov-07 13:20 
GeneralRe: How to sort all data use xslt? Pin
Prateek G20-Nov-07 20:10
Prateek G20-Nov-07 20:10 
GeneralRe: How to sort all data use xslt? Pin
guiqul16320-Nov-07 20:14
guiqul16320-Nov-07 20:14 
QuestionProblem with binding XMl data into nested repeater control?? Pin
Vishnu Narayan Mishra18-Nov-07 20:43
Vishnu Narayan Mishra18-Nov-07 20:43 
QuestionProblem with displaying parent node and child node attribute in c#-- need urgent [modified] Pin
Vishnu Narayan Mishra15-Nov-07 17:35
Vishnu Narayan Mishra15-Nov-07 17:35 
AnswerRe: Problem with displaying parent node and child node attribute in c#-- need urgent Pin
George L. Jackson15-Nov-07 18:00
George L. Jackson15-Nov-07 18:00 
GeneralRe: Problem with displaying parent node and child node attribute in c#-- need urgent Pin
Vishnu Narayan Mishra15-Nov-07 19:13
Vishnu Narayan Mishra15-Nov-07 19:13 
AnswerRe: Problem with displaying parent node and child node attribute in c#-- need urgent Pin
George L. Jackson16-Nov-07 1:28
George L. Jackson16-Nov-07 1:28 
AnswerRe: Problem with displaying parent node and child node attribute in c#-- need urgent Pin
George L. Jackson16-Nov-07 1:58
George L. Jackson16-Nov-07 1:58 
QuestionHow to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 0:36
Vishnu Narayan Mishra15-Nov-07 0:36 
AnswerRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 10:33
pmarfleet15-Nov-07 10:33 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
Vishnu Narayan Mishra15-Nov-07 19:16
Vishnu Narayan Mishra15-Nov-07 19:16 
GeneralRe: How to dispaly attributes of xml nested repeater..(if XML not followed hierarchical structure) Pin
pmarfleet15-Nov-07 19:41
pmarfleet15-Nov-07 19:41 
QuestionHow to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 20:19
Vishnu Narayan Mishra14-Nov-07 20:19 
AnswerRe: How to give a unique id like that 15b85c2b-83ca-44ec-8741-22a4dc64f64d in using c# Pin
Vishnu Narayan Mishra14-Nov-07 22:23
Vishnu Narayan Mishra14-Nov-07 22:23 
Questionhow to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra14-Nov-07 2:03
Vishnu Narayan Mishra14-Nov-07 2:03 

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.