Skip to content

Instantly share code, notes, and snippets.

@pastokes
Created April 25, 2015 22:53
Show Gist options
  • Save pastokes/5c8c23f3c406fde83e13 to your computer and use it in GitHub Desktop.
Save pastokes/5c8c23f3c406fde83e13 to your computer and use it in GitHub Desktop.
RelaxNG compact schema for the codicology model (non-TEI version) implemented by codicology.xml.
Codex = element codex { Gathering+ }
Gathering = element gathering {
(attribute id { xsd:ID }? &
Ruling?),
Singleton*, Bifolium?, Singleton*
}
Singleton = element singleton {
attribute id { xsd:ID }?,
Folio
}
Bifolium = element bifolium {
(attribute id { xsd:ID }? &
Ruling?),
Folio, (Singleton* & Bifolium*), Folio
}
Folio = element folio { Page, Page }
Page = element page {
(attribute id { xsd:ID } &
attribute hf { "H" | "F" } &
attribute ruling { "ruled" | "non-ruled" | "unruled" }? &
attribute textFollows { xsd:IDREF }?),
text
}
Ruling = attribute ruling { "beforeFolding" | "afterFolding" }
start = Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment