|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Entities in XSL (again)
Hi,
On 2/17/10 8:04 AM, Terry Badger wrote: <wrapper>This is a 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 " "> ]> <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="."/> </xsl:template> </xsl:stylesheet> tested with the following XML <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <wrapper>This is a sample</wrapper> Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








