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

Re: Entities in XSL (again)

Subject: Re: Entities in XSL (again)
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Wed, 17 Feb 2010 12:55:18 +0200
Re:  Entities in XSL (again)

On 2/17/10 8:04 AM, Terry Badger wrote:
<wrapper>This is a&nbsp; sample</wrapper>

If the above is your XML then that also needs to contain a DOCTYPE declaration to define the entity.

The following stylesheet works ok for me in oXygen:

<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="utf-8" indent="yes" method="html"/>
<xsl:template match="/">
<xsl:copy-of select="."/>

tested with the following XML

<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<wrapper>This is a &nbsp; sample</wrapper>

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

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.