RelaxNG/publiset.rnc
changeset 152 fddb2b67c19c
parent 127 efce69890bfd
child 155 1568fa18df9e
equal deleted inserted replaced
151:69782399eb50 152:fddb2b67c19c
    29 }
    29 }
    30 
    30 
    31 composition.attributes =
    31 composition.attributes =
    32    composition.id.attribute
    32    composition.id.attribute
    33  & path.attribute?
    33  & path.attribute?
    34  & xpath.attribute?
    34  & (xpath.attribute | xslt.attribute)?
    35  & xslt.attribute?
       
    36  & remap.attributes
    35  & remap.attributes
    37  & lang.attribute?
    36  & lang.attribute?
    38 composition.id.attribute = attribute id { xsd:NMTOKEN }
    37 composition.id.attribute = attribute id { xsd:NMTOKEN }
    39 path.attribute = attribute path { xsd:anyURI }
    38 path.attribute = attribute path { xsd:anyURI }
    40 xslt.attribute = attribute xslt { xsd:anyURI }
    39 xslt.attribute = attribute xslt { xsd:anyURI }
    99    selection.division.content
    98    selection.division.content
   100 }
    99 }
   101 
   100 
   102 composition.division.attributes =
   101 composition.division.attributes =
   103    path.attribute?
   102    path.attribute?
   104  & xpath.attribute?
   103  & (xpath.attribute | xslt.attribute)?
   105  & xslt.attribute?
       
   106  & remap.attributes
   104  & remap.attributes
   107 selection.division.attributes =
   105 selection.division.attributes =
   108    path.attribute?
   106    path.attribute?
   109 
   107 
   110 composition.division.content =
   108 composition.division.content =
   130 composition.file = element file { composition.file.attributes }
   128 composition.file = element file { composition.file.attributes }
   131 selection.file = element file { selection.file.attributes, file.content }
   129 selection.file = element file { selection.file.attributes, file.content }
   132 
   130 
   133 composition.file.attributes =
   131 composition.file.attributes =
   134    name.attribute
   132    name.attribute
   135  & xpath.attribute?
   133  & (xpath.attribute | xslt.attribute)?
   136  & xslt.attribute?
       
   137 selection.file.attributes =
   134 selection.file.attributes =
   138    name.attribute
   135    name.attribute
   139  & uri.attribute?
   136  & uri.attribute?
   140 name.attribute = attribute name { xsd:anyURI }
   137 name.attribute = attribute name { xsd:anyURI }
   141 
   138