RelaxNG/publidoc.rnc
changeset 40 7cfe2d4957c6
parent 39 7faa356bad3e
child 41 adde3c1288f2
equal deleted inserted replaced
39:7faa356bad3e 40:7cfe2d4957c6
    44 topic.type.attribute = attribute type { xsd:NCName }
    44 topic.type.attribute = attribute type { xsd:NCName }
    45 
    45 
    46 top.topic.content =
    46 top.topic.content =
    47    top.head?,
    47    top.head?,
    48    section+
    48    section+
       
    49 
    49 
    50 
    50 # =============================================================================
    51 # =============================================================================
    51 #                                 HEAD LEVEL
    52 #                                 HEAD LEVEL
    52 # =============================================================================
    53 # =============================================================================
    53 
    54 
    67  & author*
    68  & author*
    68  & publisher?
    69  & publisher?
    69  & date?
    70  & date?
    70  & place?
    71  & place?
    71  & source*
    72  & source*
       
    73  & keywordset?
    72  & subjectset?
    74  & subjectset?
    73  & abstract?
    75  & abstract?
    74  & cover?
    76  & cover?
    75  & annotation*
    77  & annotation*
    76 division.head.content =
    78 division.head.content =
   194 
   196 
   195 pagenumber.attributes =
   197 pagenumber.attributes =
   196    pagenumber.value.attribute
   198    pagenumber.value.attribute
   197 pagenumber.value.attribute = attribute value { xsd:positiveInteger }
   199 pagenumber.value.attribute = attribute value { xsd:positiveInteger }
   198 
   200 
   199 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   201 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   202 
       
   203 # ~~~~~~ keywordset
       
   204 keywordset = element keywordset { keywordset.content }
       
   205 
       
   206 keywordset.content = keyword+
       
   207 
       
   208 # ~~~~~~ keyword
       
   209 keyword = element keyword { keyword.content }
       
   210 
       
   211 keyword.content = text
   200 
   212 
   201 # ~~~~~~ subjectset
   213 # ~~~~~~ subjectset
   202 subjectset = element subjectset { subjectset.content }
   214 subjectset = element subjectset { subjectset.content }
   203 
   215 
   204 subjectset.content = subject+
   216 subjectset.content = subject+