OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE:   problem

[ Lists Home | Date Index | Thread Index ]
  • From: Michael Rys <mrys@microsoft.com>
  • To: 'Anthony Channing' <AnthonyC@101Ltd.com>, xml-dev@lists.xml.org
  • Date: Wed, 06 Sep 2000 02:29:14 -0700

&nbsp; is not a default XML entity. Either use a DTD to define it or use the
unicode hex value directly in the entity (&#x160; IIRC).

Best regards
Michael

> -----Original Message-----
> From: Anthony Channing [mailto:AnthonyC@101Ltd.com]
> Sent: Wednesday, September 06, 2000 2:07 AM
> To: xml-dev@lists.xml.org
> Subject: &nbsp; problem
> 
> 
> Hi,
> 
> I am currently writing an application for my employer that
> makes use of an XML data template and an XSL style
> template to output HTML pages for viewing on the web,
> which is further formated using CSS stylesheets.
> 
> In particular parts of the HTML output I would like to include
> the HTML escape character '&nbsp;' for various purposes.
> However, if I do this in the XSL style sheet it throws a
> wobbly, presumably because &nbsp; is not a recognised
> escape sequence.
> 
> I have tried using &amp;nbsp; but although this doesn't
> generate an error, the '&amp'; doesn't get converted into
> a '&', so instead of a blank space, I end up with '&nbsp;'
> appearing on the web page, not what I want at all!
> 
> I expect most of you here do this all the time, but I can't
> find any reference of how to do this in William Pardi's
> 'XML in Action' and I won't be able to check the
> WROX book 'Professional XML' until I get home,
> so if anyone could tell me how to do this, or point me
> to a web resource with the information I need, I would
> be most grateful.
> 
> Thanks
> Anton
> 101 Media Ltd
> http://www.101ltd.com
> 
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS