RE: XSLT 15th Nov: xhtml output method

>  20.2 XHTML Output Method
> 
> I wonder if this ought to be called XHTML1 output method, 
> used as <xsl:output method="xhtml1"
> 
> XHTML2 is well on the way to being specified and 
> (regrettably) uses a different namespace. If people start 
> generating xhtml2-namespaced elements then an "xhtml" output 
> method will be confusing as it won't recognise head elements 
> etc for special treatment. If the output type were "xhtml1" 
> it would be more clear I think. (I think that would be 
> preferable to trying to make the xhtml output method cope 
> uniformly with however many xhtml namespaces the html WG end 
> up defining.)

My own inclination is to use the <xsl:output version="2"> attribute to
handle such differences. But I will add an issue (#157) so it comes up on
the WG agenda. 
> 
> 
> The first bullet point says:
> 
> That is, it should output <p> </p> and not <p  />. 
>                           ^^^^^^^
> 
> but I believe that an empty p should be serialised as empty 
> but not minimised, so <p></p> not <p> -space- </p>
> 

I agree, I will interpret this as an editorial correction.

Thanks for the comments.

Michael Kay

Received on Monday, 18 November 2002 15:14:27 UTC