Jonas Sicking wrote: Nor should there be. This presupposes a DOM-based processing model. While you *might* be using a DOM, you don't need to. Section 2 of Manu's spec is pretty clear about this, as is the HTML5 spec itself. To answer your question though - it would depend on what environment you were implementing in, surely. If you were writing an implementation against a DOM 3 implementation that actually worked, they 1 seems pretty clever. An area I wold agree needs clarification is what happens in the (pathological) case where there are two attributes on the same element (your item 4). The task force has not yet discussed this case. My gut tells me that the item in the XMLNS Namespace would take precedence, but that's not always reliable. Manu's document specifies that, in the context of the HTML host language, the document is processed as defined in HTML. That document requires that a conforming processor have parsed the *input* using the rules specified in HTML5. A conforming RDFa Processor would not ever see a document with the above structure, right?Likewise, how do I find out what the 'cc' prefix is mapped for the <a> element in the following serialized HTML document? <!DOCTYPE html> <html xmlns:cc="http://example.org/myNamespace#"> <head><title>HTML+RDFa example</title></head> <body> <table xmlns:cc="http://creativecommons.org/ns#"> <a rel="cc:license" href="" class="moz-txt-link-rfc2396E" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">"http://creativecommons.org/licenses/by-nc-nd/3.0/"> Creative Commons License </a> <tr><td>Example table</td></tr> </table> </body> </html> According to Manu's document, and therefore according to HTML5, the "a" element would be moved before the table element, and your suspicion would be correct.As far as I can see the Namespaces in XML recommendation can't help me in either situation. For the DOM it doesn't deal with in-memory data models at all, rather it only deals with serialized XML documents. For the HTML document, if I try to apply XML processing as prescribed by Namespaces in XML, I conclude that 'cc' maps to "http://creativecommons.org/ns#", when in reality suspect it should map to "http://example.org/myNamespace#". Great! it is formally defined. In Manu's document, and by reference in the HTML5 spec. Am I missing something here? Section 2 of Manu's document says, in part:The second, IMHO lesser problem, is that no processing is defined anywhere for non XML documents. Even as far as reading a rel attribute out of a document is only defined for XML documents. All normative requirements refer to XML processing and thus applies no more to HTML documents than to GIF images. I consider this less of a problem because I think it's fairly obvious that data is read out of a DOM using the getAttribute function. And from a HTML document by first parsing it to a DOM and then calling getAttribute. But it really should be formally defined somewhere. "The HTML5 and XHTML5 DOM, or equivalent data structure, should be used as input to the RDFa processing rules. The normative language for construction of the HTML5 DOM and XHTML5 DOM is contained in the HTML5 specification. " Do you need additional language to make this clearer? -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: sh...@aptest.com |
- Re: HTML5 RDFa Test Suite (was Re: Request to publish HTML+... Philip Taylor
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Henri Sivonen
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Mark Birbeck
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Henri Sivonen
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Mark Birbeck
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Henri Sivonen
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Julian Reschke
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Toby Inkster
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Jonas Sicking
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Shane McCarron
- Re: Request to publish HTML+RDFa (draft 3) as FPWD Mark Birbeck