Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


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

OpenSP (63)
olivier Thereaux

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?



  • test case: XHTML document with uppercase (bogus) element

  • everyone loves a lot of these Mulberry Online! 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 or even knock-off Mulberry Online 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

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