Commits

Michael[tm] Smith  committed 24d302b

Make HTML+RDFa schema drivers for the test runner.

  • Participants
  • Parent commits 7d65a5f

Comments (0)

Files changed (1)

   buildSchemaDriverHtml5NoMicrodata(schemaDir)
   buildSchemaDriverHtml5(schemaDir)
   buildSchemaDriverHtml5RDFa(schemaDir)
+  buildSchemaDriverHtml5RDFaLite(schemaDir)
   buildSchemaDriverXhtmlCore(schemaDir)
   buildSchemaDriverXhtmlCorePlusWf2(schemaDir)
   buildSchemaDriverXhtml5xhtmlNoMicrodata(schemaDir)
   buildSchemaDriverXhtml5html(schemaDir)
   buildSchemaDriverXhtml5xhtml(schemaDir)
   buildSchemaDriverXhtml5xhtmlRDFa(schemaDir)
-  buildSchemaDriverXhtml5htmlRDFa(schemaDir)
+  buildSchemaDriverXhtml5xhtmlRDFaLite(schemaDir)
+  buildSchemaDriverXhtml5htmlRDFaLite(schemaDir)
   removeIfExists(os.path.join(schemaDir, "legacy.rnc"))
   shutil.copy(legacyRnc, schemaDir)
 
 include "microdata.rnc"
 '''
 schemaDriverHtml5RDFa = '''\
+nonRDFaLite = empty
+include "rdfa.rnc"
+'''
+schemaDriverHtml5RDFaLite = '''\
+nonRDFaLite = notAllowed
 include "rdfa.rnc"
 '''
 
   f = openDriver(schemaDir, "html5full-rdfa.rnc", "html5full.rnc")
   f.write(schemaDriverHtml5RDFa)
   f.close()
+def buildSchemaDriverHtml5RDFaLite(schemaDir):
+  f = openDriver(schemaDir, "html5full-rdfalite.rnc", "html5full.rnc")
+  f.write(schemaDriverHtml5RDFaLite)
+  f.close()
 
 ################################
 # XHTML schema drivers
   f = openDriver(schemaDir, "xhtml5full-xhtml-rdfa.rnc", "xhtml5full-xhtml.rnc")
   f.write(schemaDriverHtml5RDFa)
   f.close()
+def buildSchemaDriverXhtml5xhtmlRDFaLite(schemaDir):
+  f = openDriver(schemaDir, "xhtml5full-xhtml-rdfalite.rnc", "xhtml5full-xhtml.rnc")
+  f.write(schemaDriverHtml5RDFaLite)
+  f.close()
 
 def buildSchemaDriverXhtml5html(schemaDir):
   f = openDriver(schemaDir, "xhtml5full-html.rnc", "xhtml5full-html-no-microdata.rnc")
   f = openDriver(schemaDir, "xhtml5full-html-rdfa.rnc", "xhtml5full-html.rnc")
   f.write(schemaDriverHtml5RDFa)
   f.close()
+def buildSchemaDriverXhtml5htmlRDFaLite(schemaDir):
+  f = openDriver(schemaDir, "xhtml5full-html-rdfalite.rnc", "xhtml5full-html.rnc")
+  f.write(schemaDriverHtml5RDFaLite)
+  f.close()
 
 #################################################################
 # end of data and functions for building schema drivers