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

Re: stripping newlines

Subject: Re: stripping newlines
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Wed, 5 Sep 2001 17:53:58 +0100
xslt stripping new lines
Hi Matt,

> i need...
> blah.setHTML('<table><tr><td><etc..../></td></tr></table>');
>
> but i always end up with...
>
> blah.setHTML('<table><tr>
> <td><etc..../></td>
> </tr></table>');
>
> or something like that. i don't know if there is anything that will
> do this in xslt, but i'd appreciate any help...

It's hard to tell without seeing your XSLT, but is it possible that
you're generating elements in the content of the script element,
rather than generating text? If you have:

 blah.setHTML('<table><tr><td><etc..../></td></tr></table>');

in your XSLT stylesheet and you don't have a CDATA section wrapped
around it, then you're actually generating table elements in the
output rather than a string, which is what you should be generating.
My guess is that the XSLT processor is indenting your output nicely
for you, sees the tr element and thinks it can add whitespace.

So try:

 <![CDATA[blah.setHTML('<table><tr><td><etc..../></td></tr></table>');]]>

Otherwise, send a snippet of the XSLT that's generating the Javascript.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.