- From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
- Date: Mon, 4 Mar 2002 23:28:23 CET
- 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 > " " in the file, it's just the error that says "nbsp" instead of > " ".] 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 UTC