RE: [xsl] Closing element required instead of self closing

Subject: RE: [xsl] Closing element required instead of self closing
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 15 Jul 2008 17:27:23 +0100
> In the real world, many people try to deliver a standards 
> based website using XSLT -  they choose strict XHTML but are 
> quite often limited to XSLT 1.0 and it's XML output method, 
> so all of the various hacks are needed.  It really wouldn't 
> have been such a big deal if a processor offered a 
> tag-minimization="no" serialization option....

But suppressing all tag minimization is not enough. In fact, rendering <hr/>
as <hr></hr> is absolutely the wrong thing to do.

If you're going to provide extensions to an XSLT 1.0 serializer to handle
the XHTML requirement, you might as well do it properly (as Saxon did) and
provide an output="xhtml" method.

Michael Kay
http://www.saxonica.com/

Current Thread