Getting Started: Modest Approach
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.
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 FilesReady for the next step? Continue to the Moderate approach →