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

RE: Output  

Subject: RE: Output  
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 30 Jan 2002 17:15:24 +0200
the entity nbsp was referenced
Hip hei,

> <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
> Results in error:
> 09:03:47 Error: line 130 col 59: The entity "nbsp" was 
> referenced, but not
> declared.
> What am I missing?

An entity declaration for the entity "nbsp", like it says. If you want the entity "nbsp" to be a NO-BREAK SPACE character like in "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML", use Document Type Definition 

  <!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#x00A0;"> <!-- NO-BREAK SPACE -->

or you add

  <!ENTITY % iso-num.ent PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"

to your External Subset. However, I think you were looking for the answer that you need to escape the ampersand to &amp;, i.e.

<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

*AND* then make sure the doctype-system (and doctype-public) attribute(s) of xsl:output instuction point to a DTD that contains the declaration for entity "nbsp". But you don't want to do that either. Just use




 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.