What is the correct way to reference RDFa namespaces in HTML5?

Posted by Eivind Eidheim Elseth on Stack Overflow See other posts from Stack Overflow or by Eivind Eidheim Elseth
Published on 2012-09-20T09:35:55Z Indexed on 2012/09/20 9:37 UTC
Read the original article Hit count: 227

Filed under:
|
|

I'm setting up a HTML5 webpage and want to include RDFa. I try checking the syntax with the w3 validator, and check the extracted RDF using the w3 RDFa distiller. When I declare namespaces using xmlns:<ns>="<uri>" the validator complains that the attribute is not allowed there, and the specs say that xmlns is deprecated, but if I try the other suggested prefix="<ns> <uri>" the distiller doesn't discover the RDFa embedded on my page. Which way should I stick to?

© Stack Overflow or respective owner

Related posts about html5

Related posts about semantic-web