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

Using Entity References in XSL Templates

Subject: Using Entity References in XSL Templates
From: Theodore Epstein <Ted.Epstein@xxxxxxxx>
Date: Thu, 20 Jan 2000 19:27:51 -0500
reference to undefined entity nbsp

I'm having a problem with entity references in my XSL templates.  The
entity is defined in the DTD specified in the <xsl:output> tag.  (As it
happens, the output DTD is XHTML, and the entity reference is to &nbsp;
but my question applies to entity references in general.)  But I get a
"reference to undefined entity" error message from the XSL processor.
(I've tried XT, MSXML, and Stylus.)

I know that I can define the entity at the top of the stylesheet, like

    <!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">

But then the stylesheet processor resolves the entity reference, which
isn't what I want.  I want the entity reference to be *passed through*
to the output, which I can't seem to do.  Am I missing something?


 - Ted Epstein

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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.