xsl-list
[Top] [All Lists]

RE: Why <br /> in XSLT Stylesheet changed to <br> in HTML output

2004-01-15 03:49:51

I have some <br /> tags in my XSLT stylesheet. But they are 
changed to <br> in HTML after transformation. Any idea why 
this is happening?


It's happening because that's the correct way of representing a br
element in HTML, and because that's how the XSLT processor says it
should be done.

Tags, of course, disappear long before XSLT gets to see the data. All
that XSLT sees is a tree of nodes.

If you want <br />, then you're using the wrong output method.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list