This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: HTML <script> tag
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 29 Aug 2002 11:27:35 +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...
>
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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list