![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Undefined Entity - >Thread Next - Re: Undefined Entity - Re: Undefined Entity -To: NULL Date: 7/12/2007 1:54:00 PM kieroneil wrote: > I have a simple xml file that uses an XSL file to present some of the > data as HTML. > > The problem is that when I try to view it I get this error in IE: > > Reference to undefined entity 'nbsp'. Error processing resource > 'file:///Y:/guiprods/INTRFACE/Reverse Mortgage/WebPage/RMPr... > > <td nowrap="nowrap"> </td> > ------------------------------------------^ > > Is there something that I have to put in the header of the HTML so > that it recognizes the attribute. If you parse an HTML document with an HTML parser then it knows about nbsp but a general XML parser does not know that entity unless it is declared in a DTD. Use   instead of . Or write a DTD defining the entity nbsp and make sure your XSLT processor uses an XML parser that processes DTDs. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
