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

RE: More than one element on a line?

Subject: RE: More than one element on a line?
From: "Earl Bingham" <earl@xxxxxxxxx>
Date: Wed, 25 Aug 1999 09:34:22 -0700
perl remove preceding whitespace
This could be changes with the indent-result value. Many applications
want as little extra characters as possible for performance. Then
you can change this value when you want to be able to analyze your
xml files. Also look at whitespace-stripping

<xsl:elemnt xml:space >
</xsl:element>
an xsl:preserve-space
xsl:strip-space

<xsl:stylesheet
  indent-result="yes"
  xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'
   >


Earl Bingham
B-Bop Associates Inc.
2 North First Street
San Jose, CA 95113
Voice: (408) 993-2140
FAX: (408) 993-2141
XML SIG: http://www.sdforum.org/sigs/xml/index.html


-----Original Message-----
From:	owner-xsl-list@xxxxxxxxxxxxxxxx [SMTP:owner-xsl-list@xxxxxxxxxxxxxxxx]
On Behalf Of Edd Dumbill
Sent:	Wednesday, August 25, 1999 7:11 AM
To:	xsl-list@xxxxxxxxxxxxxxxx
Subject:	More than one element on a line?

Apologies if this question appears monumentally clueluess, but it's
been bugging me for a while.

I'm using XT.

I would like to output HTML from my XSL stylesheet
which does the following:

<TD>Whatever foo foo foo</TD>

Instead I get

<TD>
  Whatever foo foo foo
</TD>

...as any new element starts a new line.  The reason I want to close
up the gap is that browsers interpret the newline as whitespace
and add an unwelcome few pixels to the end of the line.

At the moment I'm postprocessing with Perl to clean up the output
and remove preceding whitespace from </TD> tags.  Anybody got any
suggestions as to a cleaner method for doing this?

thanks

Edd.

--
Edd Dumbill ------/ a new media consultant, writer & technologist /--
 | Director, Useful Information Company        <http://usefulinc.com>
 | Internet Director, Pharmalicensing    <http://pharmalicensing.com>
 : UK voice/msg: +44 702-093-6870            UK fax: +44 870-164-0230
 . US voice/fax: 1-877-819-1072            whois: ED1346 icq: 2132896


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.