This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: nbsp;
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] nbsp;
- From: Kelly Campbell <camk at channelpoint dot com>
- Date: Wed, 24 Jan 2001 09:50:33 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
You can declare character entities in an internal declaration, e.g.
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nl " ">
<!ENTITY nbsp " ">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
This declares &nl; to be a new line, and to be the non-breaking space
character. I like using this because then it's easier to read the xsl. If
you see   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@kpe.com]
Sent: Wednesday, January 24, 2001 8:53 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] nbsp;
Is there something unusual about the entity? My XML looks like this:
<description><b>The best </b></description>
when I transform it (using XT) I get an error: Reference to undefined entity
" ".
other entities like & 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