Commit e613e51d by Victor Shnayder

starting work on a RELAX NG compact schema

parent 3b6f33f5
# A pointer just has a url_name
pointer = element chapter |
sequential |
vertical |
customtag |
error |
problemset |
problem.... {
attribute url_name { text }
}
# Course pointers are special--they aren't allowed inside other
# structures (e.g. no courses inside a sequence)
course_ptr = element course {
attribute url_name { text }
}
# Standard metadata for all elements
metadata = {
attribute display_name { text }?,
attribute graceperiod { text }?,
attribute start { text }?,
attribute due { xsd:date }?, # is there an xsd:date?
...
}
course_meta = {
attribute org { text },
attribute course { text }
}
element course {
metadata,
course_meta,
pointer+ # at least one, please
}
element sequential | videosequence | problem {
metadata,
pointer+
}
element customtag {
metadata &
attribute impl { text } &
attribute * { text }*
}
# Problem should be on its own somewhere else.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment