PGDEL/DECP03/Unit3/15

 Unit 3.3 Web application development tools &amp; Technologies  Viewing a XML document XML file can be viewed in browsers. Steps are as follows:     1. Create a XML document    2. Save it as xml extension    3. View raw xml file in any browser. If the XML document has any error the browser will report it.XML document will be display as it is because XML document do not contain information about how to display data. Displaying XML with XSLT As we know XML will be display as it is because XML document do not contain information about how to display data. To resolve this and to display the data carried by XML document we use XSLT. With the help of XSLT a XML document can be transformed into HTML. XSLT (eXtensible Stylesheet Language Transformations) is the recommended style sheet language of XML. http://www.w3schools.com/xml/tryxslt.asp?xmlfile=simple&xsltfile=simple

Transformation is done by the browser, when the browser reads the XML file.Different browsers may produce different result when transforming XML with XSLT. To reduce this problem the XSLT transformation can be done on the server.

