#128 in -wvalid, report unknown element before attribute errors

OpenSP (63)

Consider the XHTML document (attached) with an upper-case (thus invalid in XHTML) A element, itself with attributes.

Running it through onsgmls' validation will report:

% onsgmls -s -wxml -wnon-sgml-char-ref -wvalid -c /path/to/xml.soc < uppercase_element.xhtml

onsgmls:<OSFD>0:13:11:E: there is no attribute "href"
onsgmls:<OSFD>0:13:42:E: there is no attribute "title"
onsgmls:<OSFD>0:13:56:E: element "A" undefined

The errors about href and title attribute are actually cascading errors from the fact that their element was not recognized.

I am not entirely familiar with opensp's parsing model, but I suspect it knows which element has just started before starting to parse its attributes. Would it therefore be possible to have the error about undefined element thrown before errors about the attributes?



  • olivier Thereaux

    test case: XHTML document with uppercase (bogus) element

  • Nobody/Anonymous

    everyone loves a lot of these Mulberry Online http://mulberryonline.v5s7.com! i recently gained excavation a short while ago, simply put i prescribed all of them roughly a weeks time earlier in the chesnut colour. they can perform alittle enormous, despite the fact. we've dimensions 9 1/2 ft . as well as the 9's i acquired really are alittle enormous . thus can travel alternate all of them on a dimensions 9. every person within my education contains Mulberry Online http://mulberryonline.v5s7.com or even knock-off Mulberry Online http://mulberryonline.v5s7.com. his or her ideal the winter months and additionally ill have excellent implement because of all of them as home the particular on the subject of Half a year away from the year. they are doing dirt convenient despite the fact :/ just obtain care and attention kit and additionally you'll certainly do not have any problem with all of them

  • Nobody/Anonymous

    I receive plenty of comments from this Hermes Sale http://hermessale.v5s7.com and people struggle to recognize these are typically Hermes Sale http://hermessale.v5s7.com. They are classy and therefore turbo fantastic . and are also good!! I take pleasure in these items!!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks