[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: HTML <script> tag

Subject: RE: HTML <script> tag
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Thu, 29 Aug 2002 08:55:24 +0100
exsl output

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.