XSL stands for Extensible Stylesheet Language.its a language used to desing and apply style sheets especially for xml documents.XSL consists of three parts1)xslt2)xpath3)xsl-foXSLT which stands for xsl Transformation.XSLt is also used to tranform xml document to another xml.
[CODE]<?xml version="1.0" encoding="utf-8" ?><Biodata> <bd> <name>G.Renganathan</name> <username>Ultimaterengan</username> <age>20</age> <Qualification>MCA</Qualification> </bd> <bd> <name>S</name> <username>S</username> <age>90</age> <Qualification>Msc</Qualification> </bd> </Biodata>
[/code]
XSLT file:-
[code]<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <html> <body> <!-- This is an XSLT template file. Fill in this area with the XSL elements which will transform your XML to XHTML. -->
<table border="1"> <tr bgcolor="#0acg10"> <th>name</th> <th>age</th> <th>username</th> <th>Qualification</th> </tr > <xsl:for-each select="Biodata/bd"> <tr> <td> <xsl:value-of select="name" /> </td> <td> <xsl>age</xsl> </td> <td> <xsl:value-of select="username" /> <xsl></xsl> </td> <td> <xsl:value-of select="Qualification" />
</td> </tr> </xsl:for-each > </table> </body> </html></xsl:template>
</xsl:stylesheet>
[/code]
aspx:-[code]<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:Xml ID="Xml1" DocumentSource="XMLFile.xml" TransformSource="XSLTFile.xsl" runat="server" /> </div> </form></body></html>
[/CODE]