RelaxNG/publidoc.rnc
changeset 355 469d03c6f570
parent 351 715ab7002268
child 358 73f2c224e7d7
equal deleted inserted replaced
354:4e1427fce4bb 355:469d03c6f570
   136 subject = element subject { subject.content }
   136 subject = element subject { subject.content }
   137 
   137 
   138 subject.content = simple.inlines
   138 subject.content = simple.inlines
   139 
   139 
   140 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ index ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   140 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ index ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   141 
       
   142 # ~~~~~~ indexset
       
   143 indexset = element indexset { indexset.content }
       
   144 
       
   145 indexset.content = head.index+
   141 
   146 
   142 # ~~~~~~ index
   147 # ~~~~~~ index
   143 index = element index { index.content }
   148 index = element index { index.content }
   144 head.index = element index { head.index.content }
   149 head.index = element index { head.index.content }
   145 
   150 
   198  & date?
   203  & date?
   199  & place?
   204  & place?
   200  & (source, source?)?
   205  & (source, source?)?
   201  & keywordset?
   206  & keywordset?
   202  & subjectset?
   207  & subjectset?
       
   208  & indexset?
   203  & abstract?
   209  & abstract?
   204  & head.index*
       
   205  & cover?
   210  & cover?
   206  & annotation*
   211  & annotation*
   207 
   212 
   208 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   213 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ document ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   209 
   214 
   247 
   252 
   248 division.head = element head { division.head.content }
   253 division.head = element head { division.head.content }
   249 
   254 
   250 division.head.content =
   255 division.head.content =
   251    (title, shorttitle?, subtitle*)?
   256    (title, shorttitle?, subtitle*)?
   252  & head.index*
   257  & indexset?
   253  & abstract?
   258  & abstract?
   254  & annotation*
   259  & annotation*
   255 
   260 
   256 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   261 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ division ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   257 
   262 
   287  & contributors?
   292  & contributors?
   288  & date?
   293  & date?
   289  & place?
   294  & place?
   290  & keywordset?
   295  & keywordset?
   291  & subjectset?
   296  & subjectset?
   292  & head.index*
   297  & indexset?
   293  & abstract?
   298  & abstract?
   294  & annotation*
   299  & annotation*
   295 
   300 
   296 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   301 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ topic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   297 
   302 
   320 
   325 
   321 section.head.content =
   326 section.head.content =
   322    (title, shorttitle?, subtitle*)?
   327    (title, shorttitle?, subtitle*)?
   323  & keywordset?
   328  & keywordset?
   324  & subjectset?
   329  & subjectset?
   325  & head.index*
   330  & indexset?
   326  & abstract?
   331  & abstract?
   327  & audio*
   332  & audio*
   328  & annotation*
   333  & annotation*
   329 
   334 
   330 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   335 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   373 
   378 
   374 block.head = element head { block.head.content }
   379 block.head = element head { block.head.content }
   375 
   380 
   376 block.head.content =
   381 block.head.content =
   377    (title, shorttitle?, subtitle*)?
   382    (title, shorttitle?, subtitle*)?
   378  & head.index*
   383  & indexset?
   379 
   384 
   380 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   385 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   381 
   386 
   382 block = (p | \list | blockquote | speech | table | table.cals | media)
   387 block = (p | \list | blockquote | speech | table | table.cals | media)
   383 
   388