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

RE: xsl-list Digest 28 Jun 2006 05:10:00 -0000 Issue 8

Subject: RE: xsl-list Digest 28 Jun 2006 05:10:00 -0000 Issue 820
From: Jordan Soet <jds@xxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2006 14:44:58 +0800
xsl remove nbsp
Thanks, but I was kind of hoping that there'd be something like the
strip-space, so that the empty text nodes will get removed before the
document is processed. Is there a way to remove all the nbsp before the
strip space happens other than to just process it with another stylesheet
beforehand?

Thanks,
Jordan

Date: Tue, 27 Jun 2006 10:43:55 +0100
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
From: David Carlisle <davidc@xxxxxxxxx>
Subject: Re:  xsl:strip-space and nbsp
Message-Id: <200606270943.k5R9htih031117@xxxxxxxxxxxxxxxxxxx>

> Anyways, what I'm wondering is how to strip the space including the
> nbsp.

non breaking space characters are not "whitespace" as defined by XML and
XSLT specifications (which just consists of tab, space and various end
of line characters) so you get rid of character 160 the same way as
you'd get rid of any other character such as "a", 
trannslate(.,'&#160; &#9;&#10;&#13;','')
for example will translate nbsp along with the whitespace characters to
nothing.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.