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

Re: Detect   in the input file

Subject: Re: Detect   in the input file
From: Manuel Strehl <manuel.strehl@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Feb 2008 09:52:38 +0100
Re:  Detect &nbsp; in the input file

technically you can't distinguish an "&nbsp;" from the character it represents. So assuming you don't search literally for '&'+'n'+'b'+'s'+'p'+';', you could try something like this:

<if test="contains (., '&#x00A0;&#x00A0;&#x00A0;')">
 do something

&#x00A0; and &nbsp; both describe the same Unicode codepoint, the 0xA0 non-breaking space.

Replacing can be done recursively. See <http://www.dpawson.co.uk/xsl/sect2/replace.html> for examples.


Marroc schrieb:
Hi all,

I have input XHTML that uses &nbsp; to lay out the page. I've searched and
found discussions of using and generating &nbsp; in the output document but,
how do I detect it in the input?

I have them in sets of three before the expand/collapse images in a book as


I'd like to detect each group of three and convert it to a spacer image.

Thanks in advance,

Current Thread


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.
First Name
Last Name
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.