I was trying to layout some debug information for my reading in html using xslt… but it happened that everythin is being put on only one line!? Trying to figure out what is wrong I minimized the problem to this:
my xlst that can be applied to any dummy xml file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><body><p>These<br/>words<br/>aren't<br/>seperated<br/>by<br/>BRs</body></html></xsl:template></xsl:stylesheet
And contrary to what I expected, everything is on only one line without brs. Any obvious error that I am doing ?
Is it possible it is due to Internet Explorer 9.
Use XHTML as the default namespace to apply the default stylesheet to the p and br tags:
This self-contained stylesheet works when saved as html5.xml.