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

Re: Entities, Tidy and valid XML.

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Mon, 4 Mar 2002 23:28:23 CET
Message-Id: <200203042239.RAA03487@tux.w3.org>
To: Matthew Stanfield <matthew@propertyknowledge.com>
Cc: html-tidy@w3.org
In <3C83B1B3.2CFFECB@propertyknowledge.com>, Matthew Stanfield <matthew@propertyknowledge.com> writes:
> 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;".]

You can either include the XHTML entity definitions on the generated file to 
keep the XML parser happy, or you can force tidy to generate numeric entities 
instead using the -n (numeric) command line option.

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Monday, 4 March 2002 18:40:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:51 GMT