README Oracc Home SEARCH DOCUMENTATION

Creative Commons License

ORACC Home


Introduction


cdf.rnc


cdfi.rnc


Resources

CDF: CDL Document Format

(http://oracc.ns/cdf/1.0)

Steve Tinney
Version of 2017-08-10

Introduction

CDF is an XML format for representing a variety of document types from text transliterations to books. The format combines narrative facilities with technical data types such as XTF data and corpus-based dictionaries.

cdf.rnc

namespace c = "http://oracc.org/cdf/1.0"
include "xtf.rnc"
include "cdfi.rnc"
cdf = element c:cdf { (document | transliteration | composite | translation)* }

document = element c:document { section | toplev }

toplev = ( bibliography | catalog | p | section | xtf )*

bibliography = element c:bibliography { attribute type { "by-year" }? , bib+ }

bib     = element c:bib     { (year , data) | (cdf-inline) }
year    = element c:biby    { text }
data    = element c:bibd    { text }

catalog = element c:catalog { record* }
record  = element c:record  { field*  }
field   = element c:field   { key , val }
key     = element c:key     { xsd:NMTOKEN }
val     = element c:val     { cdf-inline }

p       = element c:p       { cdf-inline }

section = element c:section { attribute type { xsd:NMTOKEN } , toplev }

gdl     = element c:gdl { words }

cdfi.rnc

namespace ci = "http://oracc.org/cdf-inline/1.0"
# include "xtf.rnc"
cdf-inline = (text | rspan | ispan | sign | bispan | gdl )*

Resources


Questions about this document may be directed to the Oracc Steering Committee (osc at oracc dot org).