RelaxNG/publiset.rnc
changeset 317 78fcb5b0d156
parent 313 e4f154ea2837
child 323 5ff538313a95
equal deleted inserted replaced
316:47ffc0efdd37 317:78fcb5b0d156
   194    composition.content
   194    composition.content
   195 }
   195 }
   196 
   196 
   197 composition.attributes =
   197 composition.attributes =
   198    composition.id.attribute
   198    composition.id.attribute
       
   199  & lang.attribute?
       
   200  & pi-source.attribute?
   199  & path.attribute?
   201  & path.attribute?
   200  & (xpath.attribute | xslt.attribute)?
   202  & (xpath.attribute | xslt.attribute)?
   201  & remap.attributes
   203  & remap.attributes
   202  & lang.attribute?
       
   203 composition.id.attribute = attribute id { xsd:NMTOKEN }
   204 composition.id.attribute = attribute id { xsd:NMTOKEN }
       
   205 lang.attribute = attribute xml:lang { xsd:language }
       
   206 pi-source.attribute = attribute pi-source { xsd:boolean }
   204 path.attribute = attribute path { xsd:anyURI }
   207 path.attribute = attribute path { xsd:anyURI }
   205 xslt.attribute = attribute xslt { xsd:anyURI }
   208 xslt.attribute = attribute xslt { xsd:anyURI }
   206 xpath.attribute = attribute xpath { text }
   209 xpath.attribute = attribute xpath { text }
   207 lang.attribute = attribute xml:lang { xsd:language }
       
   208 
   210 
   209 composition.content =
   211 composition.content =
   210    composition.head?,
   212    composition.head?,
   211    (composition.division | composition.file)+
   213    (composition.division | composition.file)+
   212 
   214 
   239    selection.content
   241    selection.content
   240 }
   242 }
   241 
   243 
   242 selection.attributes =
   244 selection.attributes =
   243    selection.id.attribute
   245    selection.id.attribute
       
   246  & lang.attribute?
   244  & path.attribute?
   247  & path.attribute?
   245  & lang.attribute?
       
   246 selection.id.attribute = attribute id { xsd:NMTOKEN }
   248 selection.id.attribute = attribute id { xsd:NMTOKEN }
   247 
   249 
   248 selection.content =
   250 selection.content =
   249    selection.head?,
   251    selection.head?,
   250    (selection.division | selection.file | link)+
   252    (selection.division | selection.file | link)+