Click here to Skip to main content
15,895,084 members
Home / Discussions / XML / XSL
   

XML / XSL

 
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 
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 
What you are doing in ur code is first you are selecting first 5 rows and then you are applying sorting...


<?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">
<xsl:sort select="./@Myid" data-type="number" order="ascending"/>
<xsl:if test="position() < 5">
<tr>
<td>
<xsl:value-of select="."/>
</td>
</tr>
</xsdl:if>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>

I guess it should work, But how u are u applying paging I am apprehensive whether u can apply it in this way, Lemme me know if have any issue...


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 
AnswerRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike14-Nov-07 5:02
led mike14-Nov-07 5:02 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
Vishnu Narayan Mishra19-Nov-07 20:03
Vishnu Narayan Mishra19-Nov-07 20:03 
GeneralRe: how to fetch child nodes of parent node in XML .. using c#... Pin
led mike20-Nov-07 5:39
led mike20-Nov-07 5:39 

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.