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

Re: Losing white space when identity transform

Subject: Re: Losing white space when identity transform
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 18 Mar 2004 09:32:33 +0000
space around checkbox
Hi Karl,

> But am losing my white-space around the <b> elements... what is up
> with that? I know this has been discussed before. Seems like there
> is a fix for this.

The text before and after the <b> element is probably output according
to the template that you have for text nodes. If you're losing the
leading and trailing whitespace from those text nodes, my guess would
be that you have a template that uses normalize-space() to output the
value of the text nodes, as in:

<xsl:template match="text()">
  <xsl:value-of select="normalize-space()" />
</xsl:template>

If so, you need to change this template to:

<xsl:template match="text()">
  <xsl:value-of select="." />
</xsl:template>

(or just omit it altogether, since this is the same as the built-in
template for text nodes).

If you don't have a template like that, please send the part of your
stylesheet that deals with text nodes and we should be able to figure
out how to change it to handle the whitespace correctly.

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.