Page 1 of 1

Validating HTML5 and RDFa lite

Posted: Fri Mar 08, 2013 9:07 am
by whyme
I am unable to get oXygen to validate the recommended use of RDFa + HTML5:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example Document</title>
</head>
<body vocab="http://schema.org/">
<p typeof="Blog"> Welcome to my <a property="url" href="http://example.org/">blog</a>. </p>
</body>
</html>
as specified here http://www.w3.org/TR/rdfa-in-html/#exte ... ml5-syntax. The problem seems to lie specifically in the use of @vocab. Why?

Re: Validating HTML5 and RDFa lite

Posted: Fri Mar 08, 2013 10:08 am
by Radu
Hi,

Oxygen uses the following NVDL schema to provide validation and content completion for XHTML 5 documents:

OXYGEN_INSTALL_DIR/frameworks/xhtml/xhtml5 (epub3)/epub-xhtml-30.nvdl

The schema does not have support for rdfa extensions.
We will consider adding a schema which has support for them in a future version.
In the meantime if you find a schema for validating XHTML 5 + RDFA, you can associate it to the HTML file and use it instead of ours.

Regards,
Radu