-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcitations.rnc
62 lines (55 loc) · 1.56 KB
/
citations.rnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
namespace f = "http://www.faustedition.net/ns"
## This schema describes the internal citation format that is the basis for
## creating the bibliography
start = Citations
Citations =
element f:citations {
( TestimonyIndex |
Citations |
StdCitation |
AppCitation |
PageCitation
)*
}
BibUri = xsd:anyURI { pattern="faust://bibliography/\S+" }
FaustUri = xsd:anyURI { pattern="faust://\S+" }
StdCitation =
## Citation from some witnesses metadata etc.
element f:citation {
## faust:// URI of the witness that cites the given reference
attribute from { FaustUri }?,
## faust://bibliography/ URI from the reference
BibUri
}
PageCitation =
## Citation from some arbitrary page in the edition
element f:citation {
## absolute path of referring page
attribute page { xsd:anyURI },
## short title for the page
attribute title { text },
## faust://bibliography/ URI from the reference
BibUri
}
TestimonyIndex = element f:testimony-index {
TestimonyCitation*
}
TestimonyCitation =
element f:citation {
## the testimony's id, e.g. bie3_5817
attribute testimony { xsd:NCName },
## the testimony's number, e.g., 5857
attribute n { xsd:NMTOKEN },
## the label of the testimony's texonomy, e.g., 'Biedermann-Herwig Nr.'
attribute taxonomy { text },
## the bibliography ID referred to
BibUri
}
AppCitation =
element f:citation {
## the apparatus id
attribute app { xsd:NMTOKEN },
attribute section { xsd:int },
attribute ref { text },
BibUri
}