Re: hGRRDL for hCard: test case of a GRDDL transformation to produce RDFa from hCards

Well - you call can do whatever you want.  However, just to clarify:

Ben Adida wrote:
> I would rather we *not* do this. From our last RDFa telecon, we agreed
> that this was a screwup with how the W3C validator works, in that it
> doesn't do XML DTDs. Let's not hack around a bug with something that
> will scare people away from RDFa needlessly.
>   
No.  That's not it.  It does XML DTDs just fine, in that XML DTDs are a 
subset of SGML DTDs and it is an SGML-based validation tool.  The issue 
is that XML DTDs do not take into account XML Namespaces, so there is no 
way to say "oh, and there is this reserved attribute prefix xmlns that 
can appear anywhere, ignore that."  Same thing with xml:space, xml:id, 
etc.  These need to be actively declared in the XML DTD if you want them 
to validate. 

There are many ways to accomplish this.  The easiest way is to put them 
in an internal subset.  I think this is entirely appropriate for test 
cases, since they are *just* test cases.  Another way is to create a 
specialized document type that declares them for you.  I would, for 
example, be happy to put all sorts of pre-defined xmlns:xxx into the 
xhtml-rdfa DTD.  All of the known, popular taxonomies with their most 
popular prefixes.  Works for me.

Like I said, I don't care what you do.  I was just pointing out that the 
documents were not valid XHTML... and therefore not XHTML documents at 
all [1] [2].


[1] 
http://www.w3.org/TR/xhtml-modularization/conformance.html#s_conform_document
[2] http://www.w3.org/TR/xhtml11/conformance.html#s_conform

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com

Received on Thursday, 19 April 2007 14:46:42 UTC