May 27, 2021 XML
In the last section, we explained how to use CSS to display XML, and in this section we'll show you a better way to display XML.
By using XSLT, you can convert XML documents into HTML formats.
XSLT is the preferred XML style sheet language.
XSLT (eXtensible Stylesheet Language Transformations) is far more complete than CSS.
XSLT converts an XML file to HTML before the browser displays it:
If you want to learn about XSLT, find the XSLT tutorial on our home page.
In the example above, when the browser reads the XML file, the XSLT conversion is done by the browser.
When you use XSLT to transform XML, different browsers may produce different results. To reduce this problem, XSLT conversions can be made on the server.