RelaxNG/publidoc.rnc
changeset 8 1d4ee28efd68
parent 5 69310bc35b63
child 9 1efd69b7c90e
equal deleted inserted replaced
7:4f3dcb980cd1 8:1d4ee28efd68
   291  & date*
   291  & date*
   292  & name*
   292  & name*
   293  & note*
   293  & note*
   294  & foreign*
   294  & foreign*
   295  & highlight*
   295  & highlight*
   296  & term*
       
   297  & mentioned*
   296  & mentioned*
   298  & quote*
   297  & quote*
       
   298  & acronym*
       
   299  & term*
   299 }
   300 }
   300 
   301 
   301 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   302 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub, sup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   302 
   303 
   303 sup = element sup { inlines }
   304 sup = element sup { inlines }
   353 
   354 
   354 highlight = element highlight { highlight.content }
   355 highlight = element highlight { highlight.content }
   355 
   356 
   356 highlight.content = inlines
   357 highlight.content = inlines
   357 
   358 
       
   359 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   360 
       
   361 mentioned = element mentioned { mentioned.content }
       
   362 
       
   363 mentioned.content = inlines
       
   364 
       
   365 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   366 
       
   367 quote = element quote { quote.content }
       
   368 
       
   369 quote.content = inlines
       
   370 
       
   371 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acronym ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   372 
       
   373 acronym = element acronym { acronym.content }
       
   374 
       
   375 acronym.content = inlines
       
   376 
   358 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   377 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   359 
   378 
   360 term = element term { term.content }
   379 term = element term { term.content }
   361 
   380 
   362 term.content = inlines
   381 term.content = inlines
   363 
   382 
   364 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mentioned ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   365 
       
   366 mentioned = element mentioned { mentioned.content }
       
   367 
       
   368 mentioned.content = inlines
       
   369 
       
   370 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ quote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   371 
       
   372 quote = element quote { quote.content }
       
   373 
       
   374 quote.content = inlines
       
   375 
       
   376 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   383 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   377 
   384 
   378 link = element link { link.attributes, link.content }
   385 link = element link { link.attributes, link.content }
   379 
   386 
   380 link.attributes = empty
   387 link.attributes = empty