Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML and XSLT

Displaying XML with XSLT


By using XSLT, you can transform an XML document into HTML format.


Displaying XML with XSLT

XSLT is the preferred XML stylesheet language.

XSLT (eXtensible Stylesheet Language Transformations) is far more powerful than CSS.

XSLT transforms an XML file into HTML before the browser displays it:

XML file

The XSLT file

If you want to learn about XSLT, please look for theHomeXSLT tutorial on our site.


Transforming XML with XSLT on the Server

In the example above, when the browser reads the XML file, the XSLT transformation is performed by the browser.

When using XSLT to transform XML, different browsers may produce different results. To reduce this problem, the XSLT transformation can be performed on the server.

View the result。