bibliography.rng 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of DocBook V5.0
  4. Copyright 1992-2008 HaL Computer Systems, Inc.,
  5. O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  6. Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  7. Organization for the Advancement of Structured Information
  8. Standards (OASIS).
  9. Release: $Id: bibliography.rnc 8931 2010-10-20 13:29:20Z nwalsh $
  10. Permission to use, copy, modify and distribute the DocBook schema
  11. and its accompanying documentation for any purpose and without fee
  12. is hereby granted in perpetuity, provided that the above copyright
  13. notice and this paragraph appear in all copies. The copyright
  14. holders make no representation about the suitability of the schema
  15. for any purpose. It is provided "as is" without expressed or implied
  16. warranty.
  17. If you modify the DocBook schema in any way, label your schema as a
  18. variant of DocBook. See the reference documentation
  19. (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  20. for more information.
  21. Please direct all questions, bug reports, or suggestions for changes
  22. to the docbook@lists.oasis-open.org mailing list. For more
  23. information, see http://www.oasis-open.org/docbook/.
  24. ======================================================================
  25. -->
  26. <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  27. <start combine="choice">
  28. <choice>
  29. <ref name="db.bibliodiv"/>
  30. <ref name="db.bibliolist"/>
  31. </choice>
  32. </start>
  33. <define name="db.navigation.components" combine="choice">
  34. <ref name="db.bibliography"/>
  35. </define>
  36. <define name="db.list.blocks" combine="choice">
  37. <ref name="db.bibliolist"/>
  38. </define>
  39. <define name="db.info.elements" combine="choice">
  40. <choice>
  41. <ref name="db.bibliomisc"/>
  42. <ref name="db.bibliomset"/>
  43. <ref name="db.bibliorelation"/>
  44. <ref name="db.biblioset"/>
  45. </choice>
  46. </define>
  47. <define name="db.link.inlines" combine="choice">
  48. <ref name="db.biblioref"/>
  49. </define>
  50. <!-- ====================================================================== -->
  51. <define name="db.relation.attribute">
  52. <attribute name="relation">
  53. <db:refpurpose>Identifies the relationship between the bibliographic elemnts</db:refpurpose>
  54. </attribute>
  55. </define>
  56. <!-- ====================================================================== -->
  57. <div>
  58. <db:refname>biblioentry</db:refname>
  59. <db:refpurpose>A raw entry in a bibliography</db:refpurpose>
  60. <define name="db.biblioentry.role.attribute">
  61. <attribute name="role"/>
  62. </define>
  63. <define name="db.biblioentry.attlist">
  64. <interleave>
  65. <optional>
  66. <ref name="db.biblioentry.role.attribute"/>
  67. </optional>
  68. <ref name="db.common.attributes"/>
  69. <ref name="db.common.linking.attributes"/>
  70. </interleave>
  71. </define>
  72. <define name="db.biblioentry">
  73. <element name="biblioentry">
  74. <ref name="db.biblioentry.attlist"/>
  75. <oneOrMore>
  76. <ref name="db.bibliographic.elements"/>
  77. </oneOrMore>
  78. </element>
  79. </define>
  80. </div>
  81. <!-- ====================================================================== -->
  82. <div>
  83. <db:refname>bibliomixed</db:refname>
  84. <db:refpurpose>A cooked entry in a bibliography</db:refpurpose>
  85. <define name="db.bibliomixed.role.attribute">
  86. <attribute name="role"/>
  87. </define>
  88. <define name="db.bibliomixed.attlist">
  89. <interleave>
  90. <optional>
  91. <ref name="db.bibliomixed.role.attribute"/>
  92. </optional>
  93. <ref name="db.common.attributes"/>
  94. <ref name="db.common.linking.attributes"/>
  95. </interleave>
  96. </define>
  97. <define name="db.bibliomixed">
  98. <element name="bibliomixed">
  99. <ref name="db.bibliomixed.attlist"/>
  100. <choice>
  101. <zeroOrMore>
  102. <choice>
  103. <ref name="db._text"/>
  104. <ref name="db.honorific"/>
  105. <ref name="db.firstname"/>
  106. <ref name="db.surname"/>
  107. <ref name="db.lineage"/>
  108. <ref name="db.othername"/>
  109. <ref name="db.bibliographic.elements"/>
  110. </choice>
  111. </zeroOrMore>
  112. <zeroOrMore>
  113. <choice>
  114. <ref name="db._text"/>
  115. <ref name="db.honorific"/>
  116. <ref name="db.givenname"/>
  117. <ref name="db.surname"/>
  118. <ref name="db.lineage"/>
  119. <ref name="db.othername"/>
  120. <ref name="db.bibliographic.elements"/>
  121. </choice>
  122. </zeroOrMore>
  123. </choice>
  124. </element>
  125. </define>
  126. </div>
  127. <!-- ====================================================================== -->
  128. <div>
  129. <db:refname>biblioset</db:refname>
  130. <db:refpurpose>A raw container for related bibliographic information</db:refpurpose>
  131. <define name="db.biblioset.relation.attribute">
  132. <ref name="db.relation.attribute"/>
  133. </define>
  134. <define name="db.biblioset.role.attribute">
  135. <attribute name="role"/>
  136. </define>
  137. <define name="db.biblioset.attlist">
  138. <interleave>
  139. <optional>
  140. <ref name="db.biblioset.role.attribute"/>
  141. </optional>
  142. <ref name="db.common.attributes"/>
  143. <ref name="db.common.linking.attributes"/>
  144. <optional>
  145. <ref name="db.biblioset.relation.attribute"/>
  146. </optional>
  147. </interleave>
  148. </define>
  149. <define name="db.biblioset">
  150. <element name="biblioset">
  151. <ref name="db.biblioset.attlist"/>
  152. <oneOrMore>
  153. <ref name="db.bibliographic.elements"/>
  154. </oneOrMore>
  155. </element>
  156. </define>
  157. </div>
  158. <!-- ====================================================================== -->
  159. <div>
  160. <db:refname>bibliomset</db:refname>
  161. <db:refpurpose>A cooked container for related bibliographic information</db:refpurpose>
  162. <define name="db.bibliomset.relation.attribute">
  163. <ref name="db.relation.attribute"/>
  164. </define>
  165. <define name="db.bibliomset.role.attribute">
  166. <attribute name="role"/>
  167. </define>
  168. <define name="db.bibliomset.attlist">
  169. <interleave>
  170. <optional>
  171. <ref name="db.bibliomset.role.attribute"/>
  172. </optional>
  173. <ref name="db.common.attributes"/>
  174. <ref name="db.common.linking.attributes"/>
  175. <optional>
  176. <ref name="db.bibliomset.relation.attribute"/>
  177. </optional>
  178. </interleave>
  179. </define>
  180. <define name="db.bibliomset">
  181. <element name="bibliomset">
  182. <ref name="db.bibliomset.attlist"/>
  183. <choice>
  184. <zeroOrMore>
  185. <choice>
  186. <ref name="db._text"/>
  187. <ref name="db.honorific"/>
  188. <ref name="db.firstname"/>
  189. <ref name="db.surname"/>
  190. <ref name="db.lineage"/>
  191. <ref name="db.othername"/>
  192. <ref name="db.bibliographic.elements"/>
  193. </choice>
  194. </zeroOrMore>
  195. <zeroOrMore>
  196. <choice>
  197. <ref name="db._text"/>
  198. <ref name="db.honorific"/>
  199. <ref name="db.givenname"/>
  200. <ref name="db.surname"/>
  201. <ref name="db.lineage"/>
  202. <ref name="db.othername"/>
  203. <ref name="db.bibliographic.elements"/>
  204. </choice>
  205. </zeroOrMore>
  206. </choice>
  207. </element>
  208. </define>
  209. </div>
  210. <!-- ====================================================================== -->
  211. <div>
  212. <db:refname>bibliomisc</db:refname>
  213. <db:refpurpose>Untyped bibliographic information</db:refpurpose>
  214. <define name="db.bibliomisc.role.attribute">
  215. <attribute name="role"/>
  216. </define>
  217. <define name="db.bibliomisc.attlist">
  218. <interleave>
  219. <optional>
  220. <ref name="db.bibliomisc.role.attribute"/>
  221. </optional>
  222. <ref name="db.common.attributes"/>
  223. <ref name="db.common.linking.attributes"/>
  224. </interleave>
  225. </define>
  226. <define name="db.bibliomisc">
  227. <element name="bibliomisc">
  228. <ref name="db.bibliomisc.attlist"/>
  229. <ref name="db._text"/>
  230. </element>
  231. </define>
  232. </div>
  233. <!-- ====================================================================== -->
  234. <div>
  235. <db:refname>bibliography</db:refname>
  236. <db:refpurpose>A bibliography</db:refpurpose>
  237. <define name="db.bibliography.status.attrib">
  238. <ref name="db.status.attribute"/>
  239. </define>
  240. <define name="db.bibliography.role.attribute">
  241. <attribute name="role"/>
  242. </define>
  243. <define name="db.bibliography.attlist">
  244. <interleave>
  245. <optional>
  246. <ref name="db.bibliography.role.attribute"/>
  247. </optional>
  248. <ref name="db.common.attributes"/>
  249. <ref name="db.common.linking.attributes"/>
  250. <optional>
  251. <ref name="db.label.attribute"/>
  252. </optional>
  253. <optional>
  254. <ref name="db.bibliography.status.attrib"/>
  255. </optional>
  256. </interleave>
  257. </define>
  258. <define name="db.bibliography.info">
  259. <ref name="db._info"/>
  260. </define>
  261. <define name="db.bibliography">
  262. <element name="bibliography">
  263. <ref name="db.bibliography.attlist"/>
  264. <ref name="db.bibliography.info"/>
  265. <zeroOrMore>
  266. <ref name="db.all.blocks"/>
  267. </zeroOrMore>
  268. <choice>
  269. <oneOrMore>
  270. <ref name="db.bibliodiv"/>
  271. </oneOrMore>
  272. <oneOrMore>
  273. <choice>
  274. <ref name="db.biblioentry"/>
  275. <ref name="db.bibliomixed"/>
  276. </choice>
  277. </oneOrMore>
  278. </choice>
  279. </element>
  280. </define>
  281. </div>
  282. <!-- ====================================================================== -->
  283. <div>
  284. <db:refname>bibliodiv</db:refname>
  285. <db:refpurpose>A section of a bibliography</db:refpurpose>
  286. <define name="db.bibliodiv.status.attrib">
  287. <ref name="db.status.attribute"/>
  288. </define>
  289. <define name="db.bibliodiv.role.attribute">
  290. <attribute name="role"/>
  291. </define>
  292. <define name="db.bibliodiv.attlist">
  293. <interleave>
  294. <optional>
  295. <ref name="db.bibliodiv.role.attribute"/>
  296. </optional>
  297. <ref name="db.common.attributes"/>
  298. <ref name="db.common.linking.attributes"/>
  299. <optional>
  300. <ref name="db.label.attribute"/>
  301. </optional>
  302. <optional>
  303. <ref name="db.bibliodiv.status.attrib"/>
  304. </optional>
  305. </interleave>
  306. </define>
  307. <define name="db.bibliodiv.info">
  308. <ref name="db._info.title.req"/>
  309. </define>
  310. <define name="db.bibliodiv">
  311. <element name="bibliodiv">
  312. <ref name="db.bibliodiv.attlist"/>
  313. <ref name="db.bibliodiv.info"/>
  314. <zeroOrMore>
  315. <ref name="db.all.blocks"/>
  316. </zeroOrMore>
  317. <oneOrMore>
  318. <choice>
  319. <ref name="db.biblioentry"/>
  320. <ref name="db.bibliomixed"/>
  321. </choice>
  322. </oneOrMore>
  323. </element>
  324. </define>
  325. </div>
  326. <!-- ====================================================================== -->
  327. <div>
  328. <db:refname>bibliolist</db:refname>
  329. <db:refpurpose>A wrapper for a list of bibliography entries</db:refpurpose>
  330. <define name="db.bibliolist.role.attribute">
  331. <attribute name="role"/>
  332. </define>
  333. <define name="db.bibliolist.attlist">
  334. <interleave>
  335. <optional>
  336. <ref name="db.bibliolist.role.attribute"/>
  337. </optional>
  338. <ref name="db.common.attributes"/>
  339. <ref name="db.common.linking.attributes"/>
  340. </interleave>
  341. </define>
  342. <define name="db.bibliolist.info">
  343. <ref name="db._info.title.only"/>
  344. </define>
  345. <define name="db.bibliolist">
  346. <element name="bibliolist">
  347. <ref name="db.bibliolist.attlist"/>
  348. <optional>
  349. <ref name="db.bibliolist.info"/>
  350. </optional>
  351. <zeroOrMore>
  352. <ref name="db.all.blocks"/>
  353. </zeroOrMore>
  354. <oneOrMore>
  355. <choice>
  356. <ref name="db.biblioentry"/>
  357. <ref name="db.bibliomixed"/>
  358. </choice>
  359. </oneOrMore>
  360. </element>
  361. </define>
  362. </div>
  363. <!-- ====================================================================== -->
  364. <div>
  365. <db:refname>biblioref</db:refname>
  366. <db:refpurpose>A cross-reference to a bibliographic entry</db:refpurpose>
  367. <define name="db.biblioref.role.attribute">
  368. <attribute name="role"/>
  369. </define>
  370. <define name="db.biblioref.xrefstyle.attribute">
  371. <ref name="db.xrefstyle.attribute"/>
  372. </define>
  373. <define name="db.biblioref.endterm.attribute">
  374. <ref name="db.endterm.attribute"/>
  375. </define>
  376. <define name="db.biblioref.units.attribute">
  377. <attribute name="units">
  378. <db:refpurpose>The units (for example, pages) used to identify the beginning and ending of a reference.</db:refpurpose>
  379. <data type="token"/>
  380. </attribute>
  381. </define>
  382. <define name="db.biblioref.begin.attribute">
  383. <attribute name="begin">
  384. <db:refpurpose>Identifies the beginning of a reference; the location within the work that is being referenced.</db:refpurpose>
  385. <data type="token"/>
  386. </attribute>
  387. </define>
  388. <define name="db.biblioref.end.attribute">
  389. <attribute name="end">
  390. <db:refpurpose>Identifies the end of a reference.</db:refpurpose>
  391. <data type="token"/>
  392. </attribute>
  393. </define>
  394. <define name="db.biblioref.attlist">
  395. <interleave>
  396. <optional>
  397. <ref name="db.biblioref.role.attribute"/>
  398. </optional>
  399. <ref name="db.common.attributes"/>
  400. <ref name="db.common.req.linking.attributes"/>
  401. <optional>
  402. <ref name="db.biblioref.xrefstyle.attribute"/>
  403. </optional>
  404. <optional>
  405. <ref name="db.biblioref.endterm.attribute"/>
  406. </optional>
  407. <optional>
  408. <ref name="db.biblioref.units.attribute"/>
  409. </optional>
  410. <optional>
  411. <ref name="db.biblioref.begin.attribute"/>
  412. </optional>
  413. <optional>
  414. <ref name="db.biblioref.end.attribute"/>
  415. </optional>
  416. </interleave>
  417. </define>
  418. <define name="db.biblioref">
  419. <element name="biblioref">
  420. <ref name="db.biblioref.attlist"/>
  421. <empty/>
  422. </element>
  423. </define>
  424. </div>
  425. </grammar>