Cleaning up HTML output

As the title should give away a minor trick to clean up your HTML output of your XLST,
since when you are working with namespaces the HTML output based on a XML file will
most probably look ‘crap’ containing a! lot of unnecessary info you don’t need to
be outputted.

There is a very handy option for that: exclude-result-prefixes, that allows you to
exclude name prefixes so that you will end up with clean HTML

 1: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl">

 

Eased up my life debugging html!

Leave a Reply