RE: [xsl] Empty object

Subject: RE: [xsl] Empty object
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 28 Jan 2004 00:19:32 -0000
> 
> 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