RelaxNG/publiset.rnc
changeset 29 0bd36d3b6a5a
parent 27 31bda0a55c4d
child 30 c0f9e813c039
equal deleted inserted replaced
28:29c17c272cea 29:0bd36d3b6a5a
    27    composition.content
    27    composition.content
    28 }
    28 }
    29 
    29 
    30 composition.attributes =
    30 composition.attributes =
    31    composition.id.attribute
    31    composition.id.attribute
       
    32  & path.attribute?
       
    33  & xpath.attribute?
       
    34  & xslt.attribute?
    32  & remap.attributes
    35  & remap.attributes
    33 composition.id.attribute = attribute xml:id { xsd:ID }
    36 composition.id.attribute = attribute xml:id { xsd:ID }
       
    37 path.attribute = attribute path { xsd:anyURI }
       
    38 xslt.attribute = attribute xslt { xsd:anyURI }
       
    39 xpath.attribute = attribute xpath { text }
    34 
    40 
    35 composition.content =
    41 composition.content =
    36    composition.head?,
    42    composition.head?,
    37    (composition.file | composition.division)+
    43    (composition.file | composition.division)+
    38 
    44 
    42    selection.attributes,
    48    selection.attributes,
    43    selection.content
    49    selection.content
    44 }
    50 }
    45 
    51 
    46 selection.attributes =
    52 selection.attributes =
    47    path.attribute?
    53    selection.id.attribute
       
    54  & path.attribute?
       
    55  & xpath.attribute?
    48 selection.id.attribute = attribute xml:id { xsd:ID }
    56 selection.id.attribute = attribute xml:id { xsd:ID }
    49 
    57 
    50 selection.content =
    58 selection.content =
    51    selection.head?,
    59    selection.head?,
    52    (selection.file | selection.division)+
    60    (selection.file | selection.division)+
   153    selection.division.content
   161    selection.division.content
   154 }
   162 }
   155 
   163 
   156 composition.division.attributes =
   164 composition.division.attributes =
   157    path.attribute?
   165    path.attribute?
       
   166  & xpath.attribute?
   158  & xslt.attribute?
   167  & xslt.attribute?
   159  & xpath.attribute?
       
   160  & remap.attributes
   168  & remap.attributes
   161 selection.division.attributes =
   169 selection.division.attributes =
   162    path.attribute?
   170    path.attribute?
   163 path.attribute = attribute path { xsd:anyURI }
   171  & xpath.attribute?
   164 xslt.attribute = attribute xslt { xsd:anyURI }
       
   165 xpath.attribute = attribute xpath { text }
       
   166 
   172 
   167 composition.division.content =
   173 composition.division.content =
   168    composition.head?,
   174    composition.head?,
   169    (composition.division | composition.file)+
   175    (composition.division | composition.file)+
   170 selection.division.content =
   176 selection.division.content =
   180 
   186 
   181 composition.file = element file { composition.file.attributes, file.content }
   187 composition.file = element file { composition.file.attributes, file.content }
   182 selection.file = element file { selection.file.attributes, file.content }
   188 selection.file = element file { selection.file.attributes, file.content }
   183 
   189 
   184 composition.file.attributes =
   190 composition.file.attributes =
   185    xslt.attribute?
   191    xpath.attribute?
   186  & xpath.attribute?
   192  & xslt.attribute?
   187  & remap.attributes
   193  & remap.attributes
   188 selection.file.attributes =
   194 selection.file.attributes =
   189    xpath.attribute?
   195    xpath.attribute?
   190  & xslt.attribute?
       
   191 
   196 
   192 file.content = xsd:anyURI
   197 file.content = xsd:anyURI
   193    
   198    
   194 # =============================================================================
   199 # =============================================================================
   195 #                                 INLINE LEVEL
   200 #                                 INLINE LEVEL