W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: Entities, Tidy and valid XML.

From: Matthew Stanfield <matthew@propertyknowledge.com>
Date: Mon, 04 Mar 2002 21:24:55 +0000
Message-ID: <3C83E627.A9F8EA78@propertyknowledge.com>
To: html-tidy@w3.org

Please ignore my earlier email, someone has just told me I need to define
all entities in an xml document apart from: &amp; &apos; &gt; &lt; &quot;
[&, ', >, <, "].



Matthew Stanfield wrote:
> Hi,
> I'm using Tidy (specifically TidyCOM) to tidy 'messy' html into valid 'well
> formed' xml before using XSLT to retrieve specific bits of data from the
> tidied xml.
> The web page is 'successfully' tidied and when I use XML Spy to check for
> 'well formedness' it says it is well formed. But when I then apply my XSLT
> transformation to it, XML Spy says the "File is not well formed: Reference
> to undefined entity 'nbsp'" [the entity is actually as you would expect
> "&nbsp;" in the file, it's just the error that says "nbsp" instead of
> "&nbsp;".]
> I can get rid of this problem by setting the tidy option to "quote-nbsp: no"
> in my options config file but when I do so I get the same error but with a
> different entity, this time "&copy;".
> If I then get rid of the "&copy;" entity manually (there is only one in the
> file) then everything works fine.
> Any suggestions as to what I should do would be greatly appreciated.
> Thanks and regards,
> ..matthew
Received on Monday, 4 March 2002 16:25:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC