Re: [xsl] Preventing tags from collapsing

Subject: Re: [xsl] Preventing tags from collapsing
From: Cas Tuyn <Cas.Tuyn@xxxxxxxx>
Date: Fri, 15 Apr 2005 09:57:09 +0200

I inserted an html comment:

<script ...><!--Leave this here to solve and IE bug--></script>

because I found the problem while using the Nvu 0.81 (X)HTML editor which insists on collapsing empty tags into self-contained tags. Because a few people still insist on using IE here, above tag will remind HTML coders to not remove it.

If you're doing XML to HTML via XSLT it is less likely that people will later hand-edit the HTML, so you can get away with just a space in the tag.


We have yet to find a way to stop tags containing no content from being collapsed :


<script></script> is always output as <script/> or
<textarea></textarea> as <textarea/>

This is sending us barking as browsers do not treat the two different renditions equally.

The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.

Current Thread