Subject: Re: [xsl] Preventing tags from collapsing From: ben senior <ben@xxxxxxxxxxxxx> Date: Fri, 15 Apr 2005 10:14:47 +0200 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Preventing tags from coll, Cas Tuyn | Thread | Re: [xsl] Preventing tags from coll, David Carlisle |
RE: [xsl] Trouble with position!, Michael Kay | Date | RE: [xsl] xsl, and different xml ve, Michael Kay |
Month |