Transforming to XHTML with XSLT

As XHTML is valid XML you will need to create a stylesheet that outputs XML with the correct XHTML namespaces.

Below is an example of a stylesheet to use:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns="">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system=""/>
    <xsl:template match="/">
       <html xmlns="" xml:lang="en">
          <!-- some content here -->

Last updated: 28/11/2007