|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] html serializationDavid Carlisle davidc at nag.co.ukMon 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. David (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 http://www.w3.org/Bugs/Public/show_bug.cgi?id=5300 ________________________________________________________________________ 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. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






