<xs:attribute name="value" type="xs:string" />
<xs:attribute name="pattern" type="xs:string"/>
<xs:attribute name="counter" type="xs:string"/>
+ <xs:attribute name="comp_list" type="xs:string"/>
+
<!-- déclaration des groupes d'éléments -->
<xs:group name="commentsElmtGroup">
<xs:sequence>
<xs:element ref="author"/>
- <xs:element ref="date"/>
- <xs:element ref="related_files"/>
- <xs:element ref="description"/>
- <xs:element ref="notes"/>
+ <xs:element ref="log"/>
+ <xs:element name="notes" type="xs:string"/>
</xs:sequence>
</xs:group>
</xs:complexType>
</xs:element>
- <xs:element name="date">
- <xs:complexType>
- <xs:attribute ref="creation" />
- </xs:complexType>
+ <xs:element name="log">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="modification" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute ref="creation" />
+ </xs:complexType>
</xs:element>
- <xs:element name="related_files">
- <xs:complexType>
- <xs:attribute ref="list" />
- </xs:complexType>
+ <xs:element name="modification">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="id" type="xs:nonNegativeInteger" />
+ <xs:attribute name="date" type="xs:date" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
</xs:element>
- <xs:element name="description" type="xs:string" />
-
- <xs:element name="notes" type="xs:string" />
-
<xs:element name="libraries">
<xs:complexType>
<xs:sequence>
<xs:attribute ref="use" />
</xs:complexType>
</xs:element>
-
- <xs:element name="architecture" type="xs:string" />
+
+ <xs:element name="architecture">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute ref="comp_list" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
<xs:element name="patterns">
<xs:complexType>