XML XSLT

XML and XSLT

To transform an XML document into HTML, the XSLT can be used.

Displaying XML with XSLT:

Being a recommended style sheet language for XML, XSLT or eXtensible Stylesheet Language Transformations is far more sophisticated than CSS. To add/remove elements and attributes to or from the output file, rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and many more, XSLT can be used. To find information in an XML document, XPath is used by XSLT. Being a major element in the XSLT standard, XPath knowledge allows us to take great advantage of XSLT.

Example:




    Tom
    8
    
   Finals (Out of 100)
   
    99


    Jin
    9
    
   Finals (Out of 100)
   
    90


   Jenny
    7
    
   Finals (Out of 100)
   
    89


   Adi
    10
    
   Finals (Out of 100)
   
    85


    Smith
    10
    
   Finals (Out of 100)
   
    80


Before displaying the above XML file in a browser, we will transform it into HTML, using XSLT.

Example XSLT Stylesheet:





  
-

( out of hundred)

Please follow and like us:
Content Protection by DMCA.com