RE: [xsl] HTML <script> tag

Subject: RE: [xsl] HTML <script> tag
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 29 Aug 2002 11:27:35 +0100
> 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.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread