This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: HTML <script> tag


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]