Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e613e51d
Commit
e613e51d
authored
Aug 03, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting work on a RELAX NG compact schema
parent
3b6f33f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
common/lib/xmodule/xmodule/validate/course.rnc
+49
-0
No files found.
common/lib/xmodule/xmodule/validate/course.rnc
0 → 100644
View file @
e613e51d
# 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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment