News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Displaying XML with XSL

Started by ben2ong2, October 05, 2006, 05:18:01 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

ben2ong2

XSL is the preferred style sheet language of XML.
XSL (the eXtensible Stylesheet Language) is far more sophisticated than CSS. One way to use XSL is to transform XML into HTML before it is displayed by the browser as demonstrated in these examples:
View the XML file, the XSL style sheet, and View the result.
Below is a fraction of the XML file. The second line, <?xml-stylesheet type="text/xsl" href="simple.xsl"?>, links the XML file to the XSL file:
<?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="simple.xsl"?><breakfast_menu>  <food>    <name>Belgian Waffles</name>    <price>$5.95</price>    <description>       two of our famous Belgian Waffles    </description>    <calories>650</calories>  </food></breakfast_menu>
If you want to learn more about XSL, please visit our XSL tutorial.

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login