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

RE: Empty object

Subject: RE: Empty object
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 28 Jan 2004 00:19:32 -0000
nonbreaking space in xsl
> 
> input xml file contains elements that are not empty but contain &nbsp;

Thanks. This is becoming clearer.
> 
> <OBJECT>&nbsp;</OBJECT> This nonbreaking space character is needed to 
> keep the space in this element.

How is the nbsp entity defined in your DTD?
> 
> When I run my transform the XHTML output contains 
> <OBJECT>nbsp;</OBJECT> 
> which of course is wrong. I need the final XHTML output to contain 
> <OBJECT>&nbsp;</OBJECT>.

I can tell you what's wrong with your XSL code if you show me your XSL
code.

You shouldn't need to do anything. The default action on text nodes is
to copy them unchanged, and this will produce the right effect.

Michael Kay

> 
> What do I need to add to my transform to assure that when my OBJECT 
> element contains a nonbreaking space character ; my transformed XHTML 
> output contains <OBJECT>&nbsp;</OBJECT>.
> 
> - Scott
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.