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

RE: nbsp;

Subject: RE: nbsp;
From: Kelly Campbell <camk@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Jan 2001 09:50:33 -0700
nbsp
You can declare character entities in an internal declaration, e.g.

<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nl "&#10;">
<!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

This declares &nl; to be a new line, and &nbsp; to be the non-breaking space
character. I like using this because then it's easier to read the xsl. If
you see &#160; all over the templates, you have to go look it up to realize
it's really nbsp. 

-Kelly

-----Original Message-----
From: Alec Cove [mailto:covea@xxxxxxx]
Sent: Wednesday, January 24, 2001 8:53 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  nbsp;




Is there something unusual about the &nbsp; entity? My XML looks like this:

<description><b>The best &nbsp;</b></description>

when I transform it (using XT) I get an error: Reference to undefined entity
" ".

other entities like &amp; work fine, anyone know why this happens?

 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
  • RE: nbsp;, (continued)
    • Derek Odegard - Wed, 24 Jan 2001 11:14:23 -0500 (EST)
    • Chuck White - Wed, 24 Jan 2001 11:24:02 -0500 (EST)
    • Michael Kay - Thu, 25 Jan 2001 06:08:18 -0500 (EST)
    • Oliver Becker - Wed, 24 Jan 2001 11:26:36 -0500 (EST)
    • Kelly Campbell - Wed, 24 Jan 2001 11:51:21 -0500 (EST) <=

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.