[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: Peter Davis <pdavis152@xxxxxxxxx>
Date: Wed, 28 Aug 2002 12:25:26 -0700
tag for space in html
On Wednesday 28 August 2002 08:57, David Carlisle wrote:
> I lied.
>
> As others have correctly commented the white space will be stripped so
> you need
> <script><xsl:text>
> </xsl:text></script>

That will work, but really all you need (and you will need this for other 
tags, like <br/> which needs to be just <br>), is 

<xsl:output method="html"/>

That's it.  This will not output xhtml, this will output html.  If you set the 
doctype as well, then your browser should have no problem.  Whether it's 
Mozilla 1.1 or Mosaic (well, I guess Mosaic probably doesn't know anything 
about html 4.0 or doctypes.  But still.).

-- 
Peter Davis

 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.