What is XSLT in XML

In this article you will learn what is XSLT in XML.
  • 1576
It is an eXtensible Stylesheet Language for Transformations.XSL stands for EXtensible Stylesheet Language and Transform XML data from one format to another with Extensible Stylesheet Language Transformations (XSLT).The need to transform XML is so common that Extensible Stylesheet Language Transformations (XSLT) is considered one of the basic XML specifications.
  • XSLT is an acronym of "Extensible Stylesheet Language Transformations.
  • It enables you to transform XML documents into another form.                


<?xml version="1.0"?>

 <xsl:stylesheet version="1.0"

xmlns:xsl="http://www.google.com/2000/XSL/Transform">

 <xsl:template match="/">

      <html>

        <body>

            <h2>My CD Collection</h2>

            <table border="1">

                <tr bgcolor="#9acd32">

                    <th>Title</th>

                    <th>Artist</th>                

          </tr>

                <xsl:for-each select="catalog/cd">

                    <tr>

                        <td>

                <xsl:value-of select="title"/>

              </td>

                        <td>

                <xsl:value-of select="artist"/>

              </td>                    

            </tr>                

          </xsl:for-each>

                    </table>

              </body>

          </html>

  </xsl:template>

 </xsl:stylesheet>


Further Readings

You may also want to read these related articles :

Ask Your Question 

Ask Your Question Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.