[xquery-talk] html serialization

David Carlisle davidc at nag.co.uk
Mon Mar 23 12:06:19 PST 2009

> . It seems  
> to me that this doesn't allow those tags to be empty element tags  
> (e.g. <script/>). However, the HTML serialization chapter of the XSLT  
> and XQuery serialization specification (http://www.w3.org/TR/xslt-xquery-serialization/ 
> ) doesn't define this. It only defines elements that must not have an  
> end-tag for empty elements.

it doesn't need to say anything about script as the html  method
shouldn't use the />  syntax for any html element (as that syntax isn't
html) So it shouldn't use <p/> either. But I think you are right, the
serialisation spec doesn't seem to actually say that anywhere, and it
should say it somewhere.

The XSLT 1 spec, from which this was ultimately derived, said

> The default value is 4.0, which specifies that the result should be
> output as HTML conforming to the HTML 4.0 Recommendation [HTML]. 

which could be taken as stopping the system using <script/> but that line
has been dropped, presumably because it isn't actually implementable,
if the result tree being serialised corresponds to invalid html.


(I'm not on the WG, so these are just comments from an interested
observer, you should probably use bugzilla to raise an error report on
the spec, so it gets considered by the WG)

possibly related is

The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

More information about the talk mailing list