RE: [xml] xmllint and HTML



On Thu, 2003-10-30 at 15:34, Jesse Pelton wrote:
On the second point, at least, xmllint is correct.  According to
http://www.w3.org/TR/1998/REC-html40-19980424/present/graphics.html#edef-HR,
an end tag for <hr> is forbidden in HTML.  (It's a different story in XHTML,
of course, but XHTML should be treated as XML, not HTML.)

OK, then should I bugzilla it, or not?
By the way, it would be nice if --html do not complain if you send him a
xml file (looking to the header we could change to XML parser without
the user need to look at the file to see if it is xhtml).

Bests
Alberto

-----Original Message-----
From: Alberto Manuel Brandão Simões 
[mailto:albie alfarrabio di uminho pt] 
Sent: Thursday, October 30, 2003 10:00 AM
To: xml gnome org
Subject: [xml] xmllint and HTML


Hi!

Although I may seem complaining, do not see it like that. 
Maybe it is my
bad English :)

1. I was used to use xmllint --html to process HTML or generic HTML
files with some special (mine) tags. Now, xmllint complains (ok, I can
ignore the complains :D but it would be nice to have a generic
pseudo-html processor)

2. The second problem is that an empty tag (again with xmllint --html)
gives complains: for example
 _.xml:2: error: Unexpected end tag : hr
 <hr></hr>
          ^
Thank for all ideas :D
best regards,
Alberto



_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]