Never been to DZone Snippets before?

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 (See related posts)

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.

   1  
   2  <xsl:output method="xml" omit-xml-declaration="yes" encoding="us-ascii"/>

You need to create an account or log in to post comments to this site.


Click here to browse all 5556 code snippets

Related Posts