A good starting point when initially learning about XML. This example shows a simple XML file and a simple XSL file that transforms the XML file into HTML for display as a Web page. No special software is required — just a text editor and a modern Web browser.

Sample Web page produced by the modest XML/XSL example
What you will learn: How to author a basic XML content file, write a corresponding XSL stylesheet, and open the result directly in a browser to see a rendered HTML Web page — all without a Web server.

How It Works

The modest example consists of just two files:

1. An XML file — holds the structured content (text, headings, paragraphs) tagged with meaningful element names rather than presentation-oriented HTML tags.

2. An XSL file — defines transformation rules that convert each XML element into the appropriate HTML output. The browser applies the XSL stylesheet to the XML document and renders the resulting HTML page on screen.

This approach requires no Web server configuration and works entirely on the desktop, making it an ideal first exercise for anyone new to XML.

Download Modest Example Files

Ready for the next step? Continue to the Moderate approach →