index.rng 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  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: index.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:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" 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.setindex"/>
  30. <ref name="db.index"/>
  31. <ref name="db.indexdiv"/>
  32. </choice>
  33. </start>
  34. <define name="db.ubiq.inlines" combine="choice">
  35. <ref name="db.indexterm"/>
  36. </define>
  37. <define name="db.indexing.inlines" combine="choice">
  38. <ref name="db.indexterm"/>
  39. </define>
  40. <define name="db.nopara.blocks" combine="choice">
  41. <ref name="db.indexterm"/>
  42. </define>
  43. <define name="db.navigation.components" combine="choice">
  44. <ref name="db.index"/>
  45. </define>
  46. <define name="db.setindex.components" combine="choice">
  47. <ref name="db.setindex"/>
  48. </define>
  49. <define name="db.info.elements" combine="choice">
  50. <ref name="db.itermset"/>
  51. </define>
  52. <!-- ====================================================================== -->
  53. <define name="db.significance.enumeration">
  54. <choice>
  55. <value>normal</value>
  56. <a:documentation>Normal</a:documentation>
  57. <value>preferred</value>
  58. <a:documentation>Preferred</a:documentation>
  59. </choice>
  60. </define>
  61. <define name="db.significance.attribute">
  62. <attribute name="significance">
  63. <db:refpurpose>Specifies the significance of the term</db:refpurpose>
  64. <ref name="db.significance.enumeration"/>
  65. </attribute>
  66. </define>
  67. <define name="db.zone.attribute">
  68. <attribute name="zone">
  69. <db:refpurpose>Specifies the IDs of the elements to which this term applies</db:refpurpose>
  70. <data type="IDREFS"/>
  71. </attribute>
  72. </define>
  73. <define name="db.indexterm.pagenum.attribute">
  74. <attribute name="pagenum">
  75. <db:refpurpose>Indicates the page on which this index term occurs in some version of the printed document</db:refpurpose>
  76. </attribute>
  77. </define>
  78. <define name="db.scope.enumeration">
  79. <choice>
  80. <value>all</value>
  81. <a:documentation>All indexes</a:documentation>
  82. <value>global</value>
  83. <a:documentation>The global index (as for a combined index of a set of books)</a:documentation>
  84. <value>local</value>
  85. <a:documentation>The local index (the index for this document only)</a:documentation>
  86. </choice>
  87. </define>
  88. <define name="db.scope.attribute">
  89. <attribute name="scope">
  90. <db:refpurpose>Specifies the scope of the index term</db:refpurpose>
  91. <ref name="db.scope.enumeration"/>
  92. </attribute>
  93. </define>
  94. <define name="db.sortas.attribute">
  95. <attribute name="sortas">
  96. <db:refpurpose>Specifies the string by which the term is to be sorted; if unspecified, the term content is used</db:refpurpose>
  97. </attribute>
  98. </define>
  99. <define name="db.index.type.attribute">
  100. <attribute name="type">
  101. <db:refpurpose>Specifies the target index for this term</db:refpurpose>
  102. </attribute>
  103. </define>
  104. <!-- ====================================================================== -->
  105. <div>
  106. <db:refname>itermset</db:refname>
  107. <db:refpurpose>A set of index terms in the meta-information of a document</db:refpurpose>
  108. <define name="db.itermset.role.attribute">
  109. <attribute name="role"/>
  110. </define>
  111. <define name="db.itermset.attlist">
  112. <interleave>
  113. <optional>
  114. <ref name="db.itermset.role.attribute"/>
  115. </optional>
  116. <ref name="db.common.attributes"/>
  117. <ref name="db.common.linking.attributes"/>
  118. </interleave>
  119. </define>
  120. <define name="db.itermset">
  121. <element name="itermset">
  122. <ref name="db.itermset.attlist"/>
  123. <oneOrMore>
  124. <ref name="db.indexterm.singular"/>
  125. </oneOrMore>
  126. </element>
  127. </define>
  128. </div>
  129. <!-- ====================================================================== -->
  130. <define name="db.indexterm.contentmodel">
  131. <optional>
  132. <ref name="db.primary"/>
  133. </optional>
  134. <optional>
  135. <choice>
  136. <group>
  137. <ref name="db.secondary"/>
  138. <optional>
  139. <choice>
  140. <group>
  141. <ref name="db.tertiary"/>
  142. <optional>
  143. <choice>
  144. <ref name="db.see"/>
  145. <oneOrMore>
  146. <ref name="db.seealso"/>
  147. </oneOrMore>
  148. </choice>
  149. </optional>
  150. </group>
  151. <ref name="db.see"/>
  152. <oneOrMore>
  153. <ref name="db.seealso"/>
  154. </oneOrMore>
  155. </choice>
  156. </optional>
  157. </group>
  158. <ref name="db.see"/>
  159. <oneOrMore>
  160. <ref name="db.seealso"/>
  161. </oneOrMore>
  162. </choice>
  163. </optional>
  164. </define>
  165. <!-- ====================================================================== -->
  166. <div>
  167. <db:refname>indexterm</db:refname>
  168. <db:refpurpose>A wrapper for an indexed term</db:refpurpose>
  169. <define name="db.indexterm.singular.role.attribute">
  170. <attribute name="role"/>
  171. </define>
  172. <define name="db.indexterm.singular.class.attribute">
  173. <attribute name="class">
  174. <db:refpurpose>Identifies the class of index term</db:refpurpose>
  175. <value>singular</value>
  176. <a:documentation>A singular index term</a:documentation>
  177. </attribute>
  178. </define>
  179. <define name="db.indexterm.singular.attlist">
  180. <interleave>
  181. <optional>
  182. <ref name="db.indexterm.singular.role.attribute"/>
  183. </optional>
  184. <ref name="db.common.attributes"/>
  185. <ref name="db.common.linking.attributes"/>
  186. <optional>
  187. <ref name="db.significance.attribute"/>
  188. </optional>
  189. <optional>
  190. <ref name="db.zone.attribute"/>
  191. </optional>
  192. <optional>
  193. <ref name="db.indexterm.pagenum.attribute"/>
  194. </optional>
  195. <optional>
  196. <ref name="db.scope.attribute"/>
  197. </optional>
  198. <optional>
  199. <ref name="db.index.type.attribute"/>
  200. </optional>
  201. <optional>
  202. <ref name="db.indexterm.singular.class.attribute"/>
  203. </optional>
  204. </interleave>
  205. </define>
  206. <define name="db.indexterm.singular">
  207. <element name="indexterm">
  208. <ref name="db.indexterm.singular.attlist"/>
  209. <ref name="db.indexterm.contentmodel"/>
  210. </element>
  211. </define>
  212. </div>
  213. <!-- ====================================================================== -->
  214. <div>
  215. <db:refname>indexterm</db:refname>
  216. <db:refpurpose>A wrapper for an indexed term that covers a range</db:refpurpose>
  217. <define name="db.indexterm.startofrange.role.attribute">
  218. <attribute name="role"/>
  219. </define>
  220. <define name="db.indexterm.startofrange.class.attribute">
  221. <attribute name="class">
  222. <db:refpurpose>Identifies the class of index term</db:refpurpose>
  223. <value>startofrange</value>
  224. <a:documentation>The start of a range</a:documentation>
  225. </attribute>
  226. </define>
  227. <define name="db.indexterm.startofrange.attlist">
  228. <interleave>
  229. <optional>
  230. <ref name="db.indexterm.startofrange.role.attribute"/>
  231. </optional>
  232. <ref name="db.common.attributes"/>
  233. <ref name="db.common.linking.attributes"/>
  234. <optional>
  235. <ref name="db.significance.attribute"/>
  236. </optional>
  237. <optional>
  238. <ref name="db.zone.attribute"/>
  239. </optional>
  240. <optional>
  241. <ref name="db.indexterm.pagenum.attribute"/>
  242. </optional>
  243. <optional>
  244. <ref name="db.scope.attribute"/>
  245. </optional>
  246. <optional>
  247. <ref name="db.index.type.attribute"/>
  248. </optional>
  249. <ref name="db.indexterm.startofrange.class.attribute"/>
  250. </interleave>
  251. </define>
  252. <define name="db.indexterm.startofrange">
  253. <element name="indexterm">
  254. <ref name="db.indexterm.startofrange.attlist"/>
  255. <ref name="db.indexterm.contentmodel"/>
  256. </element>
  257. </define>
  258. </div>
  259. <!-- ====================================================================== -->
  260. <div>
  261. <db:refname>indexterm</db:refname>
  262. <db:refpurpose>Identifies the end of a range associated with an indexed term</db:refpurpose>
  263. <define name="db.indexterm.endofrange.role.attribute">
  264. <attribute name="role"/>
  265. </define>
  266. <define name="db.indexterm.endofrange.class.attribute">
  267. <attribute name="class">
  268. <db:refpurpose>Identifies the class of index term</db:refpurpose>
  269. <value>endofrange</value>
  270. <a:documentation>The end of a range</a:documentation>
  271. </attribute>
  272. </define>
  273. <define name="db.indexterm.endofrange.startref.attribute">
  274. <attribute name="startref">
  275. <db:refpurpose>Points to the start of the range</db:refpurpose>
  276. <data type="IDREF"/>
  277. </attribute>
  278. </define>
  279. <define name="db.indexterm.endofrange.attlist">
  280. <interleave>
  281. <optional>
  282. <ref name="db.indexterm.endofrange.role.attribute"/>
  283. </optional>
  284. <ref name="db.common.attributes"/>
  285. <ref name="db.common.linking.attributes"/>
  286. <ref name="db.indexterm.endofrange.class.attribute"/>
  287. <ref name="db.indexterm.endofrange.startref.attribute"/>
  288. </interleave>
  289. </define>
  290. <define name="db.indexterm.endofrange">
  291. <element name="indexterm">
  292. <ref name="db.indexterm.endofrange.attlist"/>
  293. <empty/>
  294. </element>
  295. </define>
  296. </div>
  297. <!-- ====================================================================== -->
  298. <div>
  299. <db:refname>indexterm</db:refname>
  300. <db:refpurpose>A wrapper for terms to be indexed</db:refpurpose>
  301. <define name="db.indexterm">
  302. <choice>
  303. <ref name="db.indexterm.singular"/>
  304. <ref name="db.indexterm.startofrange"/>
  305. <ref name="db.indexterm.endofrange"/>
  306. </choice>
  307. </define>
  308. </div>
  309. <!-- ====================================================================== -->
  310. <div>
  311. <db:refname>primary</db:refname>
  312. <db:refpurpose>The primary word or phrase under which an index term should be sorted</db:refpurpose>
  313. <define name="db.primary.role.attribute">
  314. <attribute name="role"/>
  315. </define>
  316. <define name="db.primary.attlist">
  317. <interleave>
  318. <optional>
  319. <ref name="db.primary.role.attribute"/>
  320. </optional>
  321. <ref name="db.common.attributes"/>
  322. <ref name="db.common.linking.attributes"/>
  323. <optional>
  324. <ref name="db.sortas.attribute"/>
  325. </optional>
  326. </interleave>
  327. </define>
  328. <define name="db.primary">
  329. <element name="primary">
  330. <ref name="db.primary.attlist"/>
  331. <zeroOrMore>
  332. <ref name="db.all.inlines"/>
  333. </zeroOrMore>
  334. </element>
  335. </define>
  336. </div>
  337. <!-- ====================================================================== -->
  338. <div>
  339. <db:refname>secondary</db:refname>
  340. <db:refpurpose>A secondary word or phrase in an index term</db:refpurpose>
  341. <define name="db.secondary.role.attribute">
  342. <attribute name="role"/>
  343. </define>
  344. <define name="db.secondary.attlist">
  345. <interleave>
  346. <optional>
  347. <ref name="db.secondary.role.attribute"/>
  348. </optional>
  349. <ref name="db.common.attributes"/>
  350. <ref name="db.common.linking.attributes"/>
  351. <optional>
  352. <ref name="db.sortas.attribute"/>
  353. </optional>
  354. </interleave>
  355. </define>
  356. <define name="db.secondary">
  357. <element name="secondary">
  358. <ref name="db.secondary.attlist"/>
  359. <zeroOrMore>
  360. <ref name="db.all.inlines"/>
  361. </zeroOrMore>
  362. </element>
  363. </define>
  364. </div>
  365. <!-- ====================================================================== -->
  366. <div>
  367. <db:refname>tertiary</db:refname>
  368. <db:refpurpose>A tertiary word or phrase in an index term</db:refpurpose>
  369. <define name="db.tertiary.role.attribute">
  370. <attribute name="role"/>
  371. </define>
  372. <define name="db.tertiary.attlist">
  373. <interleave>
  374. <optional>
  375. <ref name="db.tertiary.role.attribute"/>
  376. </optional>
  377. <ref name="db.common.attributes"/>
  378. <ref name="db.common.linking.attributes"/>
  379. <optional>
  380. <ref name="db.sortas.attribute"/>
  381. </optional>
  382. </interleave>
  383. </define>
  384. <define name="db.tertiary">
  385. <element name="tertiary">
  386. <ref name="db.tertiary.attlist"/>
  387. <zeroOrMore>
  388. <ref name="db.all.inlines"/>
  389. </zeroOrMore>
  390. </element>
  391. </define>
  392. </div>
  393. <!-- ====================================================================== -->
  394. <div>
  395. <db:refname>see</db:refname>
  396. <db:refpurpose>Part of an index term directing the reader instead to another entry in the index</db:refpurpose>
  397. <define name="db.see.role.attribute">
  398. <attribute name="role"/>
  399. </define>
  400. <define name="db.see.attlist">
  401. <interleave>
  402. <optional>
  403. <ref name="db.see.role.attribute"/>
  404. </optional>
  405. <ref name="db.common.attributes"/>
  406. <ref name="db.common.linking.attributes"/>
  407. </interleave>
  408. </define>
  409. <define name="db.see">
  410. <element name="see">
  411. <ref name="db.see.attlist"/>
  412. <zeroOrMore>
  413. <ref name="db.all.inlines"/>
  414. </zeroOrMore>
  415. </element>
  416. </define>
  417. </div>
  418. <!-- ====================================================================== -->
  419. <div>
  420. <db:refname>seealso</db:refname>
  421. <db:refpurpose>Part of an index term directing the reader also to another entry in the index</db:refpurpose>
  422. <define name="db.seealso.role.attribute">
  423. <attribute name="role"/>
  424. </define>
  425. <define name="db.seealso.attlist">
  426. <interleave>
  427. <optional>
  428. <ref name="db.seealso.role.attribute"/>
  429. </optional>
  430. <ref name="db.common.attributes"/>
  431. <ref name="db.common.linking.attributes"/>
  432. </interleave>
  433. </define>
  434. <define name="db.seealso">
  435. <element name="seealso">
  436. <ref name="db.seealso.attlist"/>
  437. <zeroOrMore>
  438. <ref name="db.all.inlines"/>
  439. </zeroOrMore>
  440. </element>
  441. </define>
  442. </div>
  443. <!-- ====================================================================== -->
  444. <div>
  445. <db:refname>index</db:refname>
  446. <db:refpurpose>An index to a book or part of a book</db:refpurpose>
  447. <define name="db.index.status.attribute">
  448. <ref name="db.status.attribute"/>
  449. </define>
  450. <define name="db.index.role.attribute">
  451. <attribute name="role"/>
  452. </define>
  453. <define name="db.index.attlist">
  454. <interleave>
  455. <optional>
  456. <ref name="db.index.role.attribute"/>
  457. </optional>
  458. <ref name="db.common.attributes"/>
  459. <ref name="db.common.linking.attributes"/>
  460. <optional>
  461. <ref name="db.label.attribute"/>
  462. </optional>
  463. <optional>
  464. <ref name="db.index.status.attribute"/>
  465. </optional>
  466. <optional>
  467. <ref name="db.index.type.attribute"/>
  468. </optional>
  469. </interleave>
  470. </define>
  471. <define name="db.index.info">
  472. <ref name="db._info"/>
  473. </define>
  474. <!--
  475. Yes, db.indexdiv* and db.indexentry*; that way an <index/> is valid.
  476. Authors can use an empty index to indicate where a generated index should
  477. appear.
  478. -->
  479. <define name="db.index">
  480. <element name="index">
  481. <ref name="db.index.attlist"/>
  482. <ref name="db.index.info"/>
  483. <zeroOrMore>
  484. <ref name="db.all.blocks"/>
  485. </zeroOrMore>
  486. <choice>
  487. <zeroOrMore>
  488. <ref name="db.indexdiv"/>
  489. </zeroOrMore>
  490. <zeroOrMore>
  491. <ref name="db.indexentry"/>
  492. </zeroOrMore>
  493. <ref name="db.segmentedlist"/>
  494. </choice>
  495. </element>
  496. </define>
  497. </div>
  498. <!-- ====================================================================== -->
  499. <div>
  500. <db:refname>setindex</db:refname>
  501. <db:refpurpose>An index to a set of books</db:refpurpose>
  502. <define name="db.setindex.status.attribute">
  503. <ref name="db.status.attribute"/>
  504. </define>
  505. <define name="db.setindex.role.attribute">
  506. <attribute name="role"/>
  507. </define>
  508. <define name="db.setindex.attlist">
  509. <interleave>
  510. <optional>
  511. <ref name="db.setindex.role.attribute"/>
  512. </optional>
  513. <ref name="db.common.attributes"/>
  514. <ref name="db.common.linking.attributes"/>
  515. <optional>
  516. <ref name="db.label.attribute"/>
  517. </optional>
  518. <optional>
  519. <ref name="db.setindex.status.attribute"/>
  520. </optional>
  521. <optional>
  522. <ref name="db.index.type.attribute"/>
  523. </optional>
  524. </interleave>
  525. </define>
  526. <define name="db.setindex.info">
  527. <ref name="db._info"/>
  528. </define>
  529. <define name="db.setindex">
  530. <element name="setindex">
  531. <ref name="db.setindex.attlist"/>
  532. <ref name="db.setindex.info"/>
  533. <zeroOrMore>
  534. <ref name="db.all.blocks"/>
  535. </zeroOrMore>
  536. <choice>
  537. <zeroOrMore>
  538. <ref name="db.indexdiv"/>
  539. </zeroOrMore>
  540. <zeroOrMore>
  541. <ref name="db.indexentry"/>
  542. </zeroOrMore>
  543. </choice>
  544. </element>
  545. </define>
  546. </div>
  547. <!-- ====================================================================== -->
  548. <div>
  549. <db:refname>indexdiv</db:refname>
  550. <db:refpurpose>A division in an index</db:refpurpose>
  551. <define name="db.indexdiv.status.attribute">
  552. <ref name="db.status.attribute"/>
  553. </define>
  554. <define name="db.indexdiv.role.attribute">
  555. <attribute name="role"/>
  556. </define>
  557. <define name="db.indexdiv.attlist">
  558. <interleave>
  559. <optional>
  560. <ref name="db.indexdiv.role.attribute"/>
  561. </optional>
  562. <ref name="db.common.attributes"/>
  563. <ref name="db.common.linking.attributes"/>
  564. <optional>
  565. <ref name="db.label.attribute"/>
  566. </optional>
  567. <optional>
  568. <ref name="db.indexdiv.status.attribute"/>
  569. </optional>
  570. </interleave>
  571. </define>
  572. <define name="db.indexdiv.info">
  573. <ref name="db._info.title.req"/>
  574. </define>
  575. <define name="db.indexdiv">
  576. <element name="indexdiv">
  577. <ref name="db.indexdiv.attlist"/>
  578. <ref name="db.indexdiv.info"/>
  579. <zeroOrMore>
  580. <ref name="db.all.blocks"/>
  581. </zeroOrMore>
  582. <choice>
  583. <oneOrMore>
  584. <ref name="db.indexentry"/>
  585. </oneOrMore>
  586. <ref name="db.segmentedlist"/>
  587. </choice>
  588. </element>
  589. </define>
  590. </div>
  591. <!-- ====================================================================== -->
  592. <div>
  593. <db:refname>indexentry</db:refname>
  594. <db:refpurpose>An entry in an index</db:refpurpose>
  595. <define name="db.indexentry.role.attribute">
  596. <attribute name="role"/>
  597. </define>
  598. <define name="db.indexentry.attlist">
  599. <interleave>
  600. <optional>
  601. <ref name="db.indexentry.role.attribute"/>
  602. </optional>
  603. <ref name="db.common.attributes"/>
  604. <ref name="db.common.linking.attributes"/>
  605. </interleave>
  606. </define>
  607. <define name="db.indexentry">
  608. <element name="indexentry">
  609. <ref name="db.indexentry.attlist"/>
  610. <ref name="db.primaryie"/>
  611. <zeroOrMore>
  612. <choice>
  613. <ref name="db.seeie"/>
  614. <ref name="db.seealsoie"/>
  615. </choice>
  616. </zeroOrMore>
  617. <zeroOrMore>
  618. <ref name="db.secondaryie"/>
  619. <zeroOrMore>
  620. <choice>
  621. <ref name="db.seeie"/>
  622. <ref name="db.seealsoie"/>
  623. <ref name="db.tertiaryie"/>
  624. </choice>
  625. </zeroOrMore>
  626. </zeroOrMore>
  627. </element>
  628. </define>
  629. </div>
  630. <!-- ====================================================================== -->
  631. <div>
  632. <db:refname>primaryie</db:refname>
  633. <db:refpurpose>A primary term in an index entry, not in the text</db:refpurpose>
  634. <define name="db.primaryie.role.attribute">
  635. <attribute name="role"/>
  636. </define>
  637. <define name="db.primaryie.attlist">
  638. <interleave>
  639. <optional>
  640. <ref name="db.primaryie.role.attribute"/>
  641. </optional>
  642. <ref name="db.common.attributes"/>
  643. <optional>
  644. <ref name="db.linkends.attribute"/>
  645. </optional>
  646. </interleave>
  647. </define>
  648. <define name="db.primaryie">
  649. <element name="primaryie">
  650. <ref name="db.primaryie.attlist"/>
  651. <zeroOrMore>
  652. <ref name="db.all.inlines"/>
  653. </zeroOrMore>
  654. </element>
  655. </define>
  656. </div>
  657. <!-- ====================================================================== -->
  658. <div>
  659. <db:refname>secondaryie</db:refname>
  660. <db:refpurpose>A secondary term in an index entry, rather than in the text</db:refpurpose>
  661. <define name="db.secondaryie.role.attribute">
  662. <attribute name="role"/>
  663. </define>
  664. <define name="db.secondaryie.attlist">
  665. <interleave>
  666. <optional>
  667. <ref name="db.secondaryie.role.attribute"/>
  668. </optional>
  669. <ref name="db.common.attributes"/>
  670. <optional>
  671. <ref name="db.linkends.attribute"/>
  672. </optional>
  673. </interleave>
  674. </define>
  675. <define name="db.secondaryie">
  676. <element name="secondaryie">
  677. <ref name="db.secondaryie.attlist"/>
  678. <zeroOrMore>
  679. <ref name="db.all.inlines"/>
  680. </zeroOrMore>
  681. </element>
  682. </define>
  683. </div>
  684. <!-- ====================================================================== -->
  685. <div>
  686. <db:refname>tertiaryie</db:refname>
  687. <db:refpurpose>A tertiary term in an index entry, rather than in the text</db:refpurpose>
  688. <define name="db.tertiaryie.role.attribute">
  689. <attribute name="role"/>
  690. </define>
  691. <define name="db.tertiaryie.attlist">
  692. <interleave>
  693. <optional>
  694. <ref name="db.tertiaryie.role.attribute"/>
  695. </optional>
  696. <ref name="db.common.attributes"/>
  697. <optional>
  698. <ref name="db.linkends.attribute"/>
  699. </optional>
  700. </interleave>
  701. </define>
  702. <define name="db.tertiaryie">
  703. <element name="tertiaryie">
  704. <ref name="db.tertiaryie.attlist"/>
  705. <zeroOrMore>
  706. <ref name="db.all.inlines"/>
  707. </zeroOrMore>
  708. </element>
  709. </define>
  710. </div>
  711. <!-- ====================================================================== -->
  712. <div>
  713. <db:refname>seeie</db:refname>
  714. <db:refpurpose>A <db:quote>See</db:quote>
  715. entry in an index, rather than in the text</db:refpurpose>
  716. <define name="db.seeie.role.attribute">
  717. <attribute name="role"/>
  718. </define>
  719. <define name="db.seeie.attlist">
  720. <interleave>
  721. <optional>
  722. <ref name="db.seeie.role.attribute"/>
  723. </optional>
  724. <ref name="db.common.attributes"/>
  725. <optional>
  726. <ref name="db.linkend.attribute"/>
  727. </optional>
  728. </interleave>
  729. </define>
  730. <define name="db.seeie">
  731. <element name="seeie">
  732. <ref name="db.seeie.attlist"/>
  733. <zeroOrMore>
  734. <ref name="db.all.inlines"/>
  735. </zeroOrMore>
  736. </element>
  737. </define>
  738. </div>
  739. <!-- ====================================================================== -->
  740. <div>
  741. <db:refname>seealsoie</db:refname>
  742. <db:refpurpose>A <db:quote>See also</db:quote>
  743. entry in an index, rather than in the text</db:refpurpose>
  744. <define name="db.seealsoie.role.attribute">
  745. <attribute name="role"/>
  746. </define>
  747. <define name="db.seealsoie.attlist">
  748. <interleave>
  749. <optional>
  750. <ref name="db.seealsoie.role.attribute"/>
  751. </optional>
  752. <ref name="db.common.attributes"/>
  753. <optional>
  754. <ref name="db.linkends.attribute"/>
  755. </optional>
  756. </interleave>
  757. </define>
  758. <define name="db.seealsoie">
  759. <element name="seealsoie">
  760. <ref name="db.seealsoie.attlist"/>
  761. <zeroOrMore>
  762. <ref name="db.all.inlines"/>
  763. </zeroOrMore>
  764. </element>
  765. </define>
  766. </div>
  767. </grammar>