[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XHTML gives an error

Subject: RE: XHTML gives an error
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 2 Jul 2009 22:17:28 +0100
RE:  XHTML gives an error
It's best not to call it XHTML when it isn't, you'll only confuse people. If
it were XHTML, you wouldn't have a problem.

John Cowan's TagSoup handles this document just fine. Just put it on your
classpath and use the -x:org.ccil.cowan.tagsoup.Parser option when calling
Saxon.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

> -----Original Message-----
> From: Badrul Anuar [mailto:askbard@xxxxxxxxx] 
> Sent: 02 July 2009 22:02
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  XHTML gives an error
> 
> Michael Kay wrote:
> > Usually, if you want help understanding an error message, 
> it helps to 
> > tell 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.
> >   
> Sorry for not giving the exact error. Firstly, when I try to 
> run the XSL and received an error.
> 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 &nbsp; to empty 
> and finally I can run my XSL file.
> 
> Since I have to run Tidy and remove the &nbsp;, 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
> http://tools.cisco.com/security/center/viewAlert.x?alertId=18366
> 
> Thank you for your explanation.
> 
> Regards
> Badrul
> 
> > Regards,
> >
> > Michael Kay
> > http://www.saxonica.com/
> > http://twitter.com/michaelhkay

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.