RelaxNG/publidoc.rnc
changeset 446 fb5511755683
parent 436 e0506760c16d
child 448 9bc794bf36b0
equal deleted inserted replaced
445:e2b49b443853 446:fb5511755683
   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 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   248 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   249 
   249 
   250 glossary = element glossary { glossary.attributes, glossary.content }
   250 glossary = element glossary { glossary.attributes, glossary.content }
   251 
   251 
   252 glossary.attributes =
   252 glossary.attributes =
   253    glossary.type.attribute?
   253    glossary.type.attribute?
   384 
   384 
   385 footer.content =
   385 footer.content =
   386    block+
   386    block+
   387 
   387 
   388 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary.entry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   388 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glossary.entry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   389 
   389 # ~~~~~~ glossary.entry
   390 # ~~~~~~ glossary.entry
   390 glossary.entry= element entry {
   391 glossary.entry= element entry {
   391    glossary.entry.attributes, glossary.entry.content }
   392    glossary.entry.attributes, glossary.entry.content }
   392 
   393 
   393 glossary.entry.attributes =
   394 glossary.entry.attributes =
   400    meanings+,
   401    meanings+,
   401    seealso*
   402    seealso*
   402 
   403 
   403 # ~~~~~~ mainterm
   404 # ~~~~~~ mainterm
   404 mainterm = element mainterm { mainterm.content }
   405 mainterm = element mainterm { mainterm.content }
       
   406 
   405 mainterm.content = simple.inlines
   407 mainterm.content = simple.inlines
   406 
   408 
   407 # ~~~~~~ alt-terms
   409 # ~~~~~~ alt-terms
   408 alt-terms = element alt-terms { alt-terms.content }
   410 alt-terms = element alt-terms { alt-terms.content }
   409 alt-terms.content = alt-term+
   411 
       
   412 alt-terms.content =
       
   413     alt-term+
   410 
   414 
   411 # ~~~~~~ alt-term
   415 # ~~~~~~ alt-term
   412 alt-term = element alt-term { alt-term.attributes, alt-term.content }
   416 alt-term = element alt-term { alt-term.attributes, alt-term.content }
   413 alt-term.attributes = alt-term.type.attribute?
   417 
   414 alt-term.content = inlines
   418 alt-term.content = inlines
   415 
   419 
       
   420 alt-term.attributes =
       
   421     alt-term.type.attribute?
   416 alt-term.type.attribute = attribute type { xsd:NCName }
   422 alt-term.type.attribute = attribute type { xsd:NCName }
       
   423 
   417 
   424 
   418 # =============================================================================
   425 # =============================================================================
   419 #                                 BLOCK LEVEL
   426 #                                 BLOCK LEVEL
   420 # =============================================================================
   427 # =============================================================================
   421 
   428 
   853  & index*
   860  & index*
   854  & gloss*
   861  & gloss*
   855  & image*
   862  & image*
   856  & audio*
   863  & audio*
   857  & smil*
   864  & smil*
   858    
   865 
   859  & nowrap*
   866  & nowrap*
   860 }
   867 }
   861 
   868 
   862 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup, var ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   869 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup, var ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   863 
   870 
   918 term.content = mixed { sup* & warning* }
   925 term.content = mixed { sup* & warning* }
   919 
   926 
   920 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   927 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ example ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   921 
   928 
   922 example = element example { example.content }
   929 example = element example { example.content }
   923    
   930 
   924 example.content = inlines
   931 example.content = inlines
   925 
   932 
   926 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   933 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   927 
   934 
   928 stage = element stage { stage.content }
   935 stage = element stage { stage.content }