[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Preventing tags from collapsing

Subject: Re: Preventing tags from collapsing
From: Cas Tuyn <Cas.Tuyn@xxxxxxxx>
Date: Fri, 15 Apr 2005 09:57:09 +0200
xml self contained tag
Ben,

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.

Cas


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

e.g.

<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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.