RelaxNG/publidoc.rnc
changeset 426 38cd9865036b
parent 425 730c4c305545
child 427 b3750f8b986d
equal deleted inserted replaced
425:730c4c305545 426:38cd9865036b
   243    top.head?,
   243    top.head?,
   244    header?,
   244    header?,
   245    ((section+, bibliography?) | bibliography),
   245    ((section+, bibliography?) | bibliography),
   246    footer?
   246    footer?
   247 
   247 
   248 
       
   249 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   248 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   250 
   249 
   251 glossary = element glossary { glossary.attributes, glossary.content }
   250 glossary = element glossary { glossary.attributes, glossary.content }
   252 
   251 
   253 glossary.attributes =
   252 glossary.attributes =
   408 # ~~~~~~ alt-terms
   407 # ~~~~~~ alt-terms
   409 alt-terms = element alt-terms { alt-terms.content }
   408 alt-terms = element alt-terms { alt-terms.content }
   410 alt-terms.content = alt-term+
   409 alt-terms.content = alt-term+
   411 
   410 
   412 # ~~~~~~ alt-term
   411 # ~~~~~~ alt-term
   413 alt-term = element alt-term { alt-terms.attributes, alt-term.content }
   412 alt-term = element alt-term { alt-term.attributes, alt-term.content }
   414 alt-terms.attributes = type.attribute?
   413 alt-term.attributes = alt-term.type.attribute?
   415 alt-term.content = inlines
   414 alt-term.content = inlines
       
   415 
       
   416 alt-term.type.attribute = attribute type { xsd:NCName }
   416 
   417 
   417 # =============================================================================
   418 # =============================================================================
   418 #                                 BLOCK LEVEL
   419 #                                 BLOCK LEVEL
   419 # =============================================================================
   420 # =============================================================================
   420 
   421 
   768 meanings.attributes =
   769 meanings.attributes =
   769    gramcode.attribute?
   770    gramcode.attribute?
   770 gramcode.attribute = attribute gramcode { xsd:NMTOKEN }
   771 gramcode.attribute = attribute gramcode { xsd:NMTOKEN }
   771 
   772 
   772 meanings.content =
   773 meanings.content =
   773    female?,
       
   774    plural?,
       
   775    meaning+
   774    meaning+
   776 
       
   777 # ~~~~~~ female, plural
       
   778 female = element female { inlines }
       
   779 plural = element plural { inlines }
       
   780 
   775 
   781 # ~~~~~~ meaning
   776 # ~~~~~~ meaning
   782 meaning = element meaning { meaning.attributes, meaning.content }
   777 meaning = element meaning { meaning.attributes, meaning.content }
   783 
   778 
   784 meaning.attributes =
   779 meaning.attributes =