xsl-list
[Top] [All Lists]

RE: HTML <script> tag

2002-08-29 00:55:24


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



<Prev in Thread] Current Thread [Next in Thread>