<?xml-stylesheet type="text/xml" href="#style1"?>
<!DOCTYPE message [ <!ATTLIST xsl:stylesheet id ID #REQUIRED> ]>
<message>
<xsl:stylesheet id="style1" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
line 1
<br/>
line 2
</body>
</html>
</xsl:template>
</xsl:stylesheet>
</message>
I validated the XML syntax at https://www.w3schools.com/xml/xml_validator.asp :
In Chrome, the above XML file renders with two <br>
s:
In Firefox, the above XML file renders with one <br>
:
I wonder which is correct? One <br>
or two <br>
?
9