Commits

Michael[tm] Smith committed 0801ad7

Separate drivers for RDFa and Microdata.

  • Participants
  • Parent commits 4490406

Comments (0)

Files changed (1)

   legacyRnc = os.path.join(os.path.join(buildRoot, "validator", "schema", "legacy", "legacy.rnc"))
   buildSchemaDriverHtmlCore(schemaDir)
   buildSchemaDriverHtml5(schemaDir)
+  buildSchemaDriverHtml5Microdata(schemaDir)
+  buildSchemaDriverHtml5RDFa(schemaDir)
   buildSchemaDriverHtml5MicrodataRDFa(schemaDir)
   buildSchemaDriverXhtmlCore(schemaDir)
   buildSchemaDriverXhtmlCorePlusWf2(schemaDir)
   buildSchemaDriverXhtml5html(schemaDir)
   buildSchemaDriverXhtml5xhtml(schemaDir)
+  buildSchemaDriverXhtml5Microdata(schemaDir)
+  buildSchemaDriverXhtml5RDFa(schemaDir)
   buildSchemaDriverXhtml5MicrodataRDFa(schemaDir)
   removeIfExists(os.path.join(schemaDir, "legacy.rnc"))
   shutil.copy(legacyRnc, schemaDir)
 		nonRoundtrippable = notAllowed
 }
 '''
+schemaDriverHtml5Microdata = '''\
+include "microdata.rnc"
+'''
+schemaDriverHtml5RDFa = '''\
+include "rdfa-lite.rnc"
+'''
 schemaDriverHtml5MicrodataRDFa = '''\
 include "microdata.rnc"
 include "rdfa-lite.rnc"
   f.write(schemaDriverHtml5)
   f.close()
 
+def buildSchemaDriverHtml5Microdata(schemaDir):
+  f = openDriver(schemaDir, "html5full-microdata.rnc", "html5full.rnc")
+  f.write(schemaDriverHtml5Microdata)
+  f.close()
+
+def buildSchemaDriverHtml5RDFa(schemaDir):
+  f = openDriver(schemaDir, "html5full-rdfa.rnc", "html5full.rnc")
+  f.write(schemaDriverHtml5RDFa)
+  f.close()
+
 def buildSchemaDriverHtml5MicrodataRDFa(schemaDir):
   f = openDriver(schemaDir, "html5full-microdata-rdfa.rnc", "html5full.rnc")
   f.write(schemaDriverHtml5MicrodataRDFa)
   f.write(schemaDriverHtml5)
   f.close()
 
+def buildSchemaDriverXhtml5Microdata(schemaDir):
+  f = openDriver(schemaDir, "xhtml5full-xhtml-microdata.rnc", "xhtml5full-xhtml.rnc")
+  f.write(schemaDriverHtml5Microdata)
+  f.close()
+
+def buildSchemaDriverXhtml5RDFa(schemaDir):
+  f = openDriver(schemaDir, "xhtml5full-xhtml-rdfa.rnc", "xhtml5full-xhtml.rnc")
+  f.write(schemaDriverHtml5RDFa)
+  f.close()
+
 def buildSchemaDriverXhtml5MicrodataRDFa(schemaDir):
   f = openDriver(schemaDir, "xhtml5full-xhtml-microdata-rdfa.rnc", "xhtml5full-xhtml.rnc")
   f.write(schemaDriverHtml5MicrodataRDFa)