Re: Schemas and validation

>>> (Disclaimer: I didn't double-check that this exceeds the 
>>> capabilities of XSD 1.0.) The <video> element allows <source> 
>>> children only if it doesn't have the src attribute. This can be 
>>> represented in RELAX NG, but, IIRC, this can't be represented in 
>>> XSD 1.0.

Then that should not be an acceptable structure (because it cannot be 
validated by XML schema (Which I am not 100% certain of right now.)). 
and is easily avoided in practice. I would have spoken up earlier if I 
had noticed that detail.

The @src only provides the first choice and the optional source 
elements provide subsequent fallback choices. It should not be the 
@src element that is somehow optional in case of source elements. It 
is the source elements that are optional fallback. Besides, it should 
be legal for empty @src where the UA fires up the player depending 
upon the video @type or the first <source> that works. I will look.

Thanks, I will also look at the table example. My thought is that a 
table that is outside a comprehensive schema model is not table, it is 
probably layout.

Sam > ... primarily will depend on whether or not there exists anybody 
who is willing to do the work.

Well, first, the proposition is: should it be done? I wish for a nice 
clean XML standards-track XML .xsd Schema-driven validator. I think it 
is basic for a language that needs XML, and I think html needs xml, at 
least as xhtml can be derived or specified and still produce legal 
html. I mean legal xhtml should always result in legal html, but maybe 
not the reverse, right or close to right?

When starting with the html, then the xhtml as defined by schema gives 
guidance about acceptable structures and types. Validating html 
without reference to equicalent xhtml then depends upon maintaining 
legal structures and/or on tools that can be more responsive to the 
variabllity of syntax/usage that may be possible by depending upon 
specified UA intervention in building the DOM.

Whether or not there exists anybody who is willing to produce a 
budget?

Thanks Again and Best Regards,
Joe

Received on Tuesday, 2 March 2010 19:53:59 UTC