summaryrefslogtreecommitdiff
path: root/etc/schema/xhtml-attribs.rnc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/schema/xhtml-attribs.rnc')
-rw-r--r--etc/schema/xhtml-attribs.rnc14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/schema/xhtml-attribs.rnc b/etc/schema/xhtml-attribs.rnc
new file mode 100644
index 00000000000..ef653c70dbb
--- /dev/null
+++ b/etc/schema/xhtml-attribs.rnc
@@ -0,0 +1,14 @@
+# Common Attributes Module
+
+id.attrib = attribute id { ID.datatype }?
+class.attrib = attribute class { NMTOKENS.datatype }?
+title.attrib = attribute title { Text.datatype }?
+Core.attrib = id.attrib, class.attrib, title.attrib
+lang.attrib = attribute xml:lang { LanguageCode.datatype }?
+I18n.attrib = lang.attrib
+Common.attrib = Core.attrib, I18n.attrib
+CommonIdRequired.attrib =
+ attribute id { ID.datatype },
+ class.attrib,
+ title.attrib,
+ I18n.attrib