The most likely explanation is that your <br> element is not in the XHTML namespace.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Mark Gabriel
Sent: 03 July 2006 10:33
To: saxon-help@lists.sourceforge.net
Subject: [saxon] xhtml output

Hi all…

 

Not sure if I’m being silly here or what.

With Saxon 8 outputting XHTML I’m not getting what I expect with regards to empty elements.

 

A <br/> will output as <br></br> which it regarded by browsers as 2 brs.

 

The same seems to happen for <img/> <hr/> etc

With the output as XML I and getting what I would expect and for HTML I get no closing tag at all.

 

How do I get the correct output for what I want?

 

 

Thanks,

 

Mark G