hier.rng 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  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: hier.rnc 8994 2011-04-19 20:07:33Z 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:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:dbx="http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" xmlns="http://relaxng.org/ns/structure/1.0">
  27. <start combine="choice">
  28. <choice>
  29. <ref name="db.partintro"/>
  30. <ref name="db.simplesect"/>
  31. </choice>
  32. </start>
  33. <define name="db.status.attribute">
  34. <attribute name="status">
  35. <db:refpurpose>Identifies the editorial or publication status of the element on which it occurs</db:refpurpose>
  36. </attribute>
  37. </define>
  38. <!-- ====================================================================== -->
  39. <define name="db.toplevel.sections">
  40. <choice>
  41. <group>
  42. <oneOrMore>
  43. <ref name="db.section"/>
  44. </oneOrMore>
  45. <zeroOrMore>
  46. <ref name="db.simplesect"/>
  47. </zeroOrMore>
  48. </group>
  49. <oneOrMore>
  50. <ref name="db.simplesect"/>
  51. </oneOrMore>
  52. </choice>
  53. </define>
  54. <define name="db.toplevel.blocks.or.sections">
  55. <choice>
  56. <group>
  57. <oneOrMore>
  58. <ref name="db.all.blocks"/>
  59. </oneOrMore>
  60. <optional>
  61. <ref name="db.toplevel.sections"/>
  62. </optional>
  63. </group>
  64. <ref name="db.toplevel.sections"/>
  65. </choice>
  66. </define>
  67. <define name="db.recursive.sections">
  68. <choice>
  69. <group>
  70. <oneOrMore>
  71. <ref name="db.section"/>
  72. </oneOrMore>
  73. <zeroOrMore>
  74. <ref name="db.simplesect"/>
  75. </zeroOrMore>
  76. </group>
  77. <oneOrMore>
  78. <ref name="db.simplesect"/>
  79. </oneOrMore>
  80. </choice>
  81. </define>
  82. <define name="db.recursive.blocks.or.sections">
  83. <choice>
  84. <group>
  85. <oneOrMore>
  86. <ref name="db.all.blocks"/>
  87. </oneOrMore>
  88. <optional>
  89. <ref name="db.recursive.sections"/>
  90. </optional>
  91. </group>
  92. <ref name="db.recursive.sections"/>
  93. </choice>
  94. </define>
  95. <!-- ====================================================================== -->
  96. <define name="db.divisions">
  97. <ref name="db.part"/>
  98. </define>
  99. <define name="db.components">
  100. <choice>
  101. <ref name="db.dedication"/>
  102. <ref name="db.acknowledgements"/>
  103. <ref name="db.preface"/>
  104. <ref name="db.chapter"/>
  105. <ref name="db.appendix"/>
  106. <ref name="db.article"/>
  107. <ref name="db.colophon"/>
  108. </choice>
  109. </define>
  110. <define name="db.navigation.components">
  111. <notAllowed/>
  112. </define>
  113. <define name="db.component.contentmodel">
  114. <zeroOrMore>
  115. <ref name="db.navigation.components"/>
  116. </zeroOrMore>
  117. <ref name="db.toplevel.blocks.or.sections"/>
  118. <zeroOrMore>
  119. <ref name="db.navigation.components"/>
  120. </zeroOrMore>
  121. </define>
  122. <!-- ====================================================================== -->
  123. <define name="db.setindex.components">
  124. <notAllowed/>
  125. </define>
  126. <define name="db.toc.components">
  127. <notAllowed/>
  128. </define>
  129. <define name="db.set.components">
  130. <choice>
  131. <ref name="db.set"/>
  132. <ref name="db.book"/>
  133. </choice>
  134. </define>
  135. <!-- ====================================================================== -->
  136. <div>
  137. <db:refname>set</db:refname>
  138. <db:refpurpose>A collection of books</db:refpurpose>
  139. <define name="db.set.status.attribute">
  140. <ref name="db.status.attribute"/>
  141. </define>
  142. <define name="db.set.role.attribute">
  143. <attribute name="role"/>
  144. </define>
  145. <define name="db.set.attlist">
  146. <interleave>
  147. <optional>
  148. <ref name="db.set.role.attribute"/>
  149. </optional>
  150. <ref name="db.common.attributes"/>
  151. <ref name="db.common.linking.attributes"/>
  152. <optional>
  153. <ref name="db.label.attribute"/>
  154. </optional>
  155. <optional>
  156. <ref name="db.set.status.attribute"/>
  157. </optional>
  158. </interleave>
  159. </define>
  160. <define name="db.set.info">
  161. <ref name="db._info.title.req"/>
  162. </define>
  163. <define name="db.set">
  164. <element name="set">
  165. <ref name="db.set.attlist"/>
  166. <ref name="db.set.info"/>
  167. <optional>
  168. <ref name="db.toc.components"/>
  169. </optional>
  170. <oneOrMore>
  171. <ref name="db.set.components"/>
  172. </oneOrMore>
  173. <optional>
  174. <ref name="db.setindex.components"/>
  175. </optional>
  176. </element>
  177. </define>
  178. </div>
  179. <!-- ====================================================================== -->
  180. <define name="db.book.components">
  181. <zeroOrMore>
  182. <choice>
  183. <ref name="db.navigation.components"/>
  184. <ref name="db.components"/>
  185. <ref name="db.divisions"/>
  186. </choice>
  187. </zeroOrMore>
  188. </define>
  189. <!-- ====================================================================== -->
  190. <div>
  191. <db:refname>book</db:refname>
  192. <db:refpurpose>A book</db:refpurpose>
  193. <define name="db.book.status.attribute">
  194. <ref name="db.status.attribute"/>
  195. </define>
  196. <define name="db.book.role.attribute">
  197. <attribute name="role"/>
  198. </define>
  199. <define name="db.book.attlist">
  200. <interleave>
  201. <optional>
  202. <ref name="db.book.role.attribute"/>
  203. </optional>
  204. <ref name="db.common.attributes"/>
  205. <ref name="db.common.linking.attributes"/>
  206. <optional>
  207. <ref name="db.label.attribute"/>
  208. </optional>
  209. <optional>
  210. <ref name="db.book.status.attribute"/>
  211. </optional>
  212. </interleave>
  213. </define>
  214. <define name="db.book.info">
  215. <ref name="db._info"/>
  216. </define>
  217. <define name="db.book">
  218. <element name="book">
  219. <ref name="db.book.attlist"/>
  220. <ref name="db.book.info"/>
  221. <ref name="db.book.components"/>
  222. </element>
  223. </define>
  224. </div>
  225. <!-- ====================================================================== -->
  226. <div>
  227. <db:refname>dedication</db:refname>
  228. <db:refpurpose>The dedication of a book or other component</db:refpurpose>
  229. <define name="db.dedication.status.attribute">
  230. <ref name="db.status.attribute"/>
  231. </define>
  232. <define name="db.dedication.role.attribute">
  233. <attribute name="role"/>
  234. </define>
  235. <define name="db.dedication.attlist">
  236. <interleave>
  237. <optional>
  238. <ref name="db.dedication.role.attribute"/>
  239. </optional>
  240. <ref name="db.common.attributes"/>
  241. <ref name="db.common.linking.attributes"/>
  242. <optional>
  243. <ref name="db.label.attribute"/>
  244. </optional>
  245. <optional>
  246. <ref name="db.dedication.status.attribute"/>
  247. </optional>
  248. </interleave>
  249. </define>
  250. <define name="db.dedication.info">
  251. <ref name="db._info"/>
  252. </define>
  253. <define name="db.dedication">
  254. <element name="dedication">
  255. <ref name="db.dedication.attlist"/>
  256. <ref name="db.dedication.info"/>
  257. <oneOrMore>
  258. <ref name="db.all.blocks"/>
  259. </oneOrMore>
  260. </element>
  261. </define>
  262. </div>
  263. <!-- ====================================================================== -->
  264. <div>
  265. <db:refname>acknowledgements</db:refname>
  266. <db:refpurpose>Acknowledgements of a book or other component</db:refpurpose>
  267. <define name="db.acknowledgements.status.attribute">
  268. <ref name="db.status.attribute"/>
  269. </define>
  270. <define name="db.acknowledgements.role.attribute">
  271. <attribute name="role"/>
  272. </define>
  273. <define name="db.acknowledgements.attlist">
  274. <interleave>
  275. <optional>
  276. <ref name="db.acknowledgements.role.attribute"/>
  277. </optional>
  278. <ref name="db.common.attributes"/>
  279. <ref name="db.common.linking.attributes"/>
  280. <optional>
  281. <ref name="db.label.attribute"/>
  282. </optional>
  283. <optional>
  284. <ref name="db.acknowledgements.status.attribute"/>
  285. </optional>
  286. </interleave>
  287. </define>
  288. <define name="db.acknowledgements.info">
  289. <ref name="db._info"/>
  290. </define>
  291. <define name="db.acknowledgements">
  292. <element name="acknowledgements">
  293. <ref name="db.acknowledgements.attlist"/>
  294. <ref name="db.acknowledgements.info"/>
  295. <oneOrMore>
  296. <ref name="db.all.blocks"/>
  297. </oneOrMore>
  298. </element>
  299. </define>
  300. </div>
  301. <!-- ====================================================================== -->
  302. <div>
  303. <db:refname>colophon</db:refname>
  304. <db:refpurpose>Text at the back of a book describing facts about its production</db:refpurpose>
  305. <define name="db.colophon.status.attribute">
  306. <ref name="db.status.attribute"/>
  307. </define>
  308. <define name="db.colophon.role.attribute">
  309. <attribute name="role"/>
  310. </define>
  311. <define name="db.colophon.attlist">
  312. <interleave>
  313. <optional>
  314. <ref name="db.colophon.role.attribute"/>
  315. </optional>
  316. <ref name="db.common.attributes"/>
  317. <ref name="db.common.linking.attributes"/>
  318. <optional>
  319. <ref name="db.label.attribute"/>
  320. </optional>
  321. <optional>
  322. <ref name="db.colophon.status.attribute"/>
  323. </optional>
  324. </interleave>
  325. </define>
  326. <define name="db.colophon.info">
  327. <ref name="db._info"/>
  328. </define>
  329. <define name="db.colophon">
  330. <element name="colophon">
  331. <ref name="db.colophon.attlist"/>
  332. <ref name="db.colophon.info"/>
  333. <choice>
  334. <group>
  335. <oneOrMore>
  336. <ref name="db.all.blocks"/>
  337. </oneOrMore>
  338. <zeroOrMore>
  339. <ref name="db.simplesect"/>
  340. </zeroOrMore>
  341. </group>
  342. <group>
  343. <zeroOrMore>
  344. <ref name="db.all.blocks"/>
  345. </zeroOrMore>
  346. <oneOrMore>
  347. <ref name="db.simplesect"/>
  348. </oneOrMore>
  349. </group>
  350. </choice>
  351. </element>
  352. </define>
  353. </div>
  354. <!-- ====================================================================== -->
  355. <define name="db.appendix.contentmodel">
  356. <ref name="db.component.contentmodel"/>
  357. </define>
  358. <!-- ====================================================================== -->
  359. <div>
  360. <db:refname>appendix</db:refname>
  361. <db:refpurpose>An appendix in a book or article</db:refpurpose>
  362. <define name="db.appendix.status.attribute">
  363. <ref name="db.status.attribute"/>
  364. </define>
  365. <define name="db.appendix.role.attribute">
  366. <attribute name="role"/>
  367. </define>
  368. <define name="db.appendix.attlist">
  369. <interleave>
  370. <optional>
  371. <ref name="db.appendix.role.attribute"/>
  372. </optional>
  373. <ref name="db.common.attributes"/>
  374. <ref name="db.common.linking.attributes"/>
  375. <optional>
  376. <ref name="db.label.attribute"/>
  377. </optional>
  378. <optional>
  379. <ref name="db.appendix.status.attribute"/>
  380. </optional>
  381. </interleave>
  382. </define>
  383. <define name="db.appendix.info">
  384. <ref name="db._info.title.req"/>
  385. </define>
  386. <define name="db.appendix">
  387. <element name="appendix">
  388. <ref name="db.appendix.attlist"/>
  389. <ref name="db.appendix.info"/>
  390. <ref name="db.appendix.contentmodel"/>
  391. </element>
  392. </define>
  393. </div>
  394. <!-- ====================================================================== -->
  395. <define name="db.chapter.contentmodel">
  396. <ref name="db.component.contentmodel"/>
  397. </define>
  398. <!-- ====================================================================== -->
  399. <div>
  400. <db:refname>chapter</db:refname>
  401. <db:refpurpose>A chapter, as of a book</db:refpurpose>
  402. <define name="db.chapter.status.attribute">
  403. <ref name="db.status.attribute"/>
  404. </define>
  405. <define name="db.chapter.role.attribute">
  406. <attribute name="role"/>
  407. </define>
  408. <define name="db.chapter.attlist">
  409. <interleave>
  410. <optional>
  411. <ref name="db.chapter.role.attribute"/>
  412. </optional>
  413. <ref name="db.common.attributes"/>
  414. <ref name="db.common.linking.attributes"/>
  415. <optional>
  416. <ref name="db.label.attribute"/>
  417. </optional>
  418. <optional>
  419. <ref name="db.chapter.status.attribute"/>
  420. </optional>
  421. </interleave>
  422. </define>
  423. <define name="db.chapter.info">
  424. <ref name="db._info.title.req"/>
  425. </define>
  426. <define name="db.chapter">
  427. <element name="chapter">
  428. <ref name="db.chapter.attlist"/>
  429. <ref name="db.chapter.info"/>
  430. <ref name="db.chapter.contentmodel"/>
  431. </element>
  432. </define>
  433. </div>
  434. <!-- ====================================================================== -->
  435. <define name="db.part.components">
  436. <choice>
  437. <ref name="db.navigation.components"/>
  438. <ref name="db.components"/>
  439. </choice>
  440. </define>
  441. <define name="db.part.contentmodel">
  442. <oneOrMore>
  443. <ref name="db.part.components"/>
  444. </oneOrMore>
  445. </define>
  446. <!-- ====================================================================== -->
  447. <div>
  448. <db:refname>part</db:refname>
  449. <db:refpurpose>A division in a book</db:refpurpose>
  450. <define name="db.part.status.attribute">
  451. <ref name="db.status.attribute"/>
  452. </define>
  453. <define name="db.part.role.attribute">
  454. <attribute name="role"/>
  455. </define>
  456. <define name="db.part.attlist">
  457. <interleave>
  458. <optional>
  459. <ref name="db.part.role.attribute"/>
  460. </optional>
  461. <ref name="db.common.attributes"/>
  462. <ref name="db.common.linking.attributes"/>
  463. <optional>
  464. <ref name="db.label.attribute"/>
  465. </optional>
  466. <optional>
  467. <ref name="db.part.status.attribute"/>
  468. </optional>
  469. </interleave>
  470. </define>
  471. <define name="db.part.info">
  472. <ref name="db._info.title.req"/>
  473. </define>
  474. <define name="db.part">
  475. <element name="part">
  476. <ref name="db.part.attlist"/>
  477. <ref name="db.part.info"/>
  478. <optional>
  479. <ref name="db.partintro"/>
  480. </optional>
  481. <ref name="db.part.contentmodel"/>
  482. </element>
  483. </define>
  484. </div>
  485. <!-- ====================================================================== -->
  486. <div>
  487. <db:refname>preface</db:refname>
  488. <db:refpurpose>Introductory matter preceding the first chapter of a book</db:refpurpose>
  489. <define name="db.preface.status.attribute">
  490. <ref name="db.status.attribute"/>
  491. </define>
  492. <define name="db.preface.role.attribute">
  493. <attribute name="role"/>
  494. </define>
  495. <define name="db.preface.attlist">
  496. <interleave>
  497. <optional>
  498. <ref name="db.preface.role.attribute"/>
  499. </optional>
  500. <ref name="db.common.attributes"/>
  501. <ref name="db.common.linking.attributes"/>
  502. <optional>
  503. <ref name="db.label.attribute"/>
  504. </optional>
  505. <optional>
  506. <ref name="db.preface.status.attribute"/>
  507. </optional>
  508. </interleave>
  509. </define>
  510. <define name="db.preface.info">
  511. <ref name="db._info.title.req"/>
  512. </define>
  513. <define name="db.preface">
  514. <element name="preface">
  515. <ref name="db.preface.attlist"/>
  516. <ref name="db.preface.info"/>
  517. <ref name="db.component.contentmodel"/>
  518. </element>
  519. </define>
  520. </div>
  521. <!-- ====================================================================== -->
  522. <div>
  523. <db:refname>partintro</db:refname>
  524. <db:refpurpose>An introduction to the contents of a part</db:refpurpose>
  525. <define name="db.partintro.status.attribute">
  526. <ref name="db.status.attribute"/>
  527. </define>
  528. <define name="db.partintro.role.attribute">
  529. <attribute name="role"/>
  530. </define>
  531. <define name="db.partintro.attlist">
  532. <interleave>
  533. <optional>
  534. <ref name="db.partintro.role.attribute"/>
  535. </optional>
  536. <ref name="db.common.attributes"/>
  537. <ref name="db.common.linking.attributes"/>
  538. <optional>
  539. <ref name="db.label.attribute"/>
  540. </optional>
  541. <optional>
  542. <ref name="db.partintro.status.attribute"/>
  543. </optional>
  544. </interleave>
  545. </define>
  546. <define name="db.partintro.info">
  547. <ref name="db._info"/>
  548. </define>
  549. <define name="db.partintro">
  550. <element name="partintro">
  551. <ref name="db.partintro.attlist"/>
  552. <ref name="db.partintro.info"/>
  553. <ref name="db.toplevel.blocks.or.sections"/>
  554. </element>
  555. </define>
  556. </div>
  557. <!-- ====================================================================== -->
  558. <div>
  559. <db:refname>section</db:refname>
  560. <db:refpurpose>A recursive section</db:refpurpose>
  561. <define name="db.section.status.attribute">
  562. <ref name="db.status.attribute"/>
  563. </define>
  564. <define name="db.section.role.attribute">
  565. <attribute name="role"/>
  566. </define>
  567. <define name="db.section.attlist">
  568. <interleave>
  569. <optional>
  570. <ref name="db.section.role.attribute"/>
  571. </optional>
  572. <ref name="db.common.attributes"/>
  573. <ref name="db.common.linking.attributes"/>
  574. <optional>
  575. <ref name="db.label.attribute"/>
  576. </optional>
  577. <optional>
  578. <ref name="db.section.status.attribute"/>
  579. </optional>
  580. </interleave>
  581. </define>
  582. <define name="db.section.info">
  583. <ref name="db._info.title.req"/>
  584. </define>
  585. <define name="db.section">
  586. <element name="section">
  587. <ref name="db.section.attlist"/>
  588. <ref name="db.section.info"/>
  589. <ref name="db.recursive.blocks.or.sections"/>
  590. <zeroOrMore>
  591. <ref name="db.navigation.components"/>
  592. </zeroOrMore>
  593. </element>
  594. </define>
  595. </div>
  596. <!-- ====================================================================== -->
  597. <div>
  598. <db:refname>simplesect</db:refname>
  599. <db:refpurpose>A section of a document with no subdivisions</db:refpurpose>
  600. <define name="db.simplesect.status.attribute">
  601. <ref name="db.status.attribute"/>
  602. </define>
  603. <define name="db.simplesect.role.attribute">
  604. <attribute name="role"/>
  605. </define>
  606. <define name="db.simplesect.attlist">
  607. <interleave>
  608. <optional>
  609. <ref name="db.simplesect.role.attribute"/>
  610. </optional>
  611. <ref name="db.common.attributes"/>
  612. <ref name="db.common.linking.attributes"/>
  613. <optional>
  614. <ref name="db.label.attribute"/>
  615. </optional>
  616. <optional>
  617. <ref name="db.simplesect.status.attribute"/>
  618. </optional>
  619. </interleave>
  620. </define>
  621. <define name="db.simplesect.info">
  622. <ref name="db._info.title.req"/>
  623. </define>
  624. <define name="db.simplesect">
  625. <element name="simplesect">
  626. <ref name="db.simplesect.attlist"/>
  627. <ref name="db.simplesect.info"/>
  628. <oneOrMore>
  629. <ref name="db.all.blocks"/>
  630. </oneOrMore>
  631. </element>
  632. </define>
  633. </div>
  634. <!-- ====================================================================== -->
  635. <define name="db.article.components">
  636. <ref name="db.toplevel.sections"/>
  637. </define>
  638. <define name="db.article.navcomponents">
  639. <choice>
  640. <ref name="db.navigation.components"/>
  641. <ref name="db.acknowledgements"/>
  642. <ref name="db.dedication"/>
  643. <ref name="db.appendix"/>
  644. <ref name="db.colophon"/>
  645. </choice>
  646. </define>
  647. <!-- ====================================================================== -->
  648. <div>
  649. <db:refname>article</db:refname>
  650. <db:refpurpose>An article</db:refpurpose>
  651. <define name="db.article.status.attribute">
  652. <ref name="db.status.attribute"/>
  653. </define>
  654. <define name="db.article.class.enumeration">
  655. <choice>
  656. <value>faq</value>
  657. <a:documentation>A collection of frequently asked questions.</a:documentation>
  658. <value>journalarticle</value>
  659. <a:documentation>An article in a journal or other periodical.</a:documentation>
  660. <value>productsheet</value>
  661. <a:documentation>A description of a product.</a:documentation>
  662. <value>specification</value>
  663. <a:documentation>A specification.</a:documentation>
  664. <value>techreport</value>
  665. <a:documentation>A technical report.</a:documentation>
  666. <value>whitepaper</value>
  667. <a:documentation>A white paper.</a:documentation>
  668. </choice>
  669. </define>
  670. <define name="db.article.class.attribute">
  671. <attribute name="class">
  672. <db:refpurpose>Identifies the nature of the article</db:refpurpose>
  673. <ref name="db.article.class.enumeration"/>
  674. </attribute>
  675. </define>
  676. <define name="db.article.role.attribute">
  677. <attribute name="role"/>
  678. </define>
  679. <define name="db.article.attlist">
  680. <interleave>
  681. <optional>
  682. <ref name="db.article.role.attribute"/>
  683. </optional>
  684. <ref name="db.common.attributes"/>
  685. <ref name="db.common.linking.attributes"/>
  686. <optional>
  687. <ref name="db.label.attribute"/>
  688. </optional>
  689. <optional>
  690. <ref name="db.article.status.attribute"/>
  691. </optional>
  692. <optional>
  693. <ref name="db.article.class.attribute"/>
  694. </optional>
  695. </interleave>
  696. </define>
  697. <define name="db.article.info">
  698. <ref name="db._info.title.req"/>
  699. </define>
  700. <define name="db.article">
  701. <element name="article">
  702. <ref name="db.article.attlist"/>
  703. <ref name="db.article.info"/>
  704. <zeroOrMore>
  705. <ref name="db.article.navcomponents"/>
  706. </zeroOrMore>
  707. <choice>
  708. <group>
  709. <oneOrMore>
  710. <ref name="db.all.blocks"/>
  711. </oneOrMore>
  712. <optional>
  713. <ref name="db.article.components"/>
  714. </optional>
  715. </group>
  716. <ref name="db.article.components"/>
  717. </choice>
  718. <zeroOrMore>
  719. <ref name="db.article.navcomponents"/>
  720. </zeroOrMore>
  721. </element>
  722. </define>
  723. </div>
  724. </grammar>