xsl-list
[Top] [All Lists]

RE: HTML <script> tag

2002-08-29 03:27:35
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...


If you use xsl:output method="html", then you should never see <div/> in
the output, always <div></div>.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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