DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
When Producing XHTML Output With XSL Files, You Have To Use
The method="xml" is needed if you want XHTML valid output, "xhtml" is not a valid parameter. The encoding="us-ascii" is needed if you want pound, euro, nbsp and any other html entities to show up correctly.
<xsl:output method="xml" omit-xml-declaration="yes" encoding="us-ascii"/>