This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: HTML <script> tag
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 29 Aug 2002 08:55:24 +0100
- Subject: RE: [xsl] HTML <script> tag
- Reply-to: xsl-list at lists dot mulberrytech dot com
I've always had problems with 'tag minimisation' and html, such as:
<div style="padding-left:5em">
<xsl:value-of select="something"/>
</div>
<div>I dont want to be indented</div>
If something is empty the first div becomes <div/> which html doesn't
recognise as a closed element, so all following elements get the
style...
The same goes for <span>, <a>, <td> etc.
The only way to stop the minimisation is a liberal use of #160's, or
whatever meets your output encoding ;)
Of course, a nice feature to a processor would be a switch to stop it
turning:
<foo><foo>
into
<foo/>
something like <exsl:output minimisation="no"/>, at least until html
becomes xhtml...
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list