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

Re: Handling &nbsp

Subject: Re: Handling &nbsp
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 4 Apr 2001 14:58:05 +0100 (BST)
handling nbsp xsl document
> I'm transforming an xhtml document and can't figure out how to handle CDATA
> such as &nbsp.

that's what FAQ lists are for (see www.dpawson.co.uk)

> Ive got this to work:

>     <xsl:template match="p[.='&#xa0;']">

well that's the correct thing to do. You can only use &nbsp; in an XML
file if you define the entity to be something, and if you want it to be
the same as HTML you would have to define it to be &#xa0; in which case
using &nbsp; and using &#xa0; would be the same thing.

But are you really expecting to find paragraphs in your source document
that consist of _only_ a non breaking space. They would be really
strange paragraphs!


David

 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.