[XSL-LIST Mailing List Archive Home]
Re: [xsl] XHTML gives an error
Subject: Re: [xsl] XHTML gives an error|
From: Badrul Anuar <askbard@xxxxxxxxx>
Date: Thu, 02 Jul 2009 22:02:29 +0100
Michael Kay wrote:
Usually, if you want help understanding an error message, it helps to tellSorry for not giving the exact error. Firstly, when I try to run the XSL
and received an error.
people what the error message is.
Does anybody know how to clean any XHTML file or to convert into XML.
If I have the XML, the it would be easier for me to use XSL.
You're confused. If it's XHTML then it already is XML, and doesn't need
converting. If the error message is telling you that it's not XML, this
means that it's not XHTML either.
The error was "The 'meta' start tag on line 11 does not match the end
tag of 'head'. Line 14, position 3."
So, I try to clean the XHTML using Tidy and receive another error
"Reference to undeclared entity 'nbsp'. Line 293, position 16."
The command used to clean the XHTML .. tidy -m filename.htm
Since I received another error, I changed all to empty and
finally I can run my XSL file.
Since I have to run Tidy and remove the , I'm thinking about to
change all the XHTML to XML.
Sorry for misunderstanding.
If you have any suggestion on how to minimize the work of cleaning XHTML
and remove &nsbp, it would be better.
The url for the XHTML is
Thank you for your explanation.