RelaxNG/publiset.rnc
changeset 18 e448c6a000e5
parent 5 69310bc35b63
child 20 79713ffae179
equal deleted inserted replaced
17:ca367d4d080b 18:e448c6a000e5
    68 
    68 
    69 metadata.attributes =
    69 metadata.attributes =
    70    remap.attributes
    70    remap.attributes
    71 
    71 
    72 metadata.content =
    72 metadata.content =
    73    title?
    73    (title, subtitle?)?
    74  & subtitle?
    74  & language?
    75  & author*
    75  & author*
    76  & publisher?
    76  & publisher?
    77  & language?
       
    78  & source?
    77  & source?
    79 
    78 
    80 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    79 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    81 
    80 
    82 title = element title { title.content }
    81 title = element title { title.content }
       
    82 subtitle = element subtitle { title.content }
    83 
    83 
    84 title.content = inlines
    84 title.content = inlines
    85 
    85 
    86 subtitle = element subtitle { title.content }
    86 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
    87 
       
    88 language = element language { language.attributes }
       
    89 
       
    90 language.attributes = lang.attribute
       
    91 lang.attribute = attribute xml:lang { xsd:language }
    87 
    92 
    88 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    93 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ author, publisher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    89 
    94 
    90 # ~~~~~~ author
    95 # ~~~~~~ author
    91 author = element author { author.content }
    96 author = element author { author.content }
   106 
   111 
   107 # ~~~~~~ lastname
   112 # ~~~~~~ lastname
   108 lastname = element lastname { lastname.content }
   113 lastname = element lastname { lastname.content }
   109 
   114 
   110 lastname.content = inlines
   115 lastname.content = inlines
   111 
       
   112 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Language ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
   113 
       
   114 language = element language { language.attributes }
       
   115 
       
   116 language.attributes = lang.attribute
       
   117 lang.attribute = attribute xml:lang { xsd:language }
       
   118 
   116 
   119 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   117 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   120 
   118 
   121 # ~~~~~~ source
   119 # ~~~~~~ source
   122 source = element source {
   120 source = element source {