Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion capitains.rng
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="http://purl.org/capitains/ns/1.0#"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/">
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/">
<!-- je restructurerais bien le schéma en listant les patterns par NS, puis regroupement par ref dans le pattern collection -->
<!-- idem, il faut mieux documenter et inscrire dans le schéma les 2 choix de structuration: élément capitains:collection renseigné OU lien vers fichier de méta -->
<start>
Expand Down Expand Up @@ -306,6 +307,30 @@
</choice>
</element>
</define>
<define name="dct.isReferencedBy">
<element name="dct:isReferencedBy">
<a:documentation xml:lang="eng"> A related resource that references, cites, or otherwise points to the described resource. </a:documentation>
<ref name="identifier.att"></ref>
<optional>
<ref name="lang-att"/>
</optional>
<choice>
<text/>
</choice>
</element>
</define>
<define name="dct.references">
<element name="dct:references">
<a:documentation xml:lang="eng"> A related resource that is referenced, cited, or otherwise pointed to by the described resource. </a:documentation>
<ref name="identifier.att"></ref>
<optional>
<ref name="lang-att"/>
</optional>
<choice>
<text/>
</choice>
</element>
</define>
<define name="lang-att">
<attribute>
<a:documentation xml:lang="eng">Language in which the current node is
Expand All @@ -327,6 +352,8 @@
<except>
<nsName ns="http://purl.org/dc/elements/1.1/"/>
<nsName ns="http://purl.org/ns/capitains"/>
<name ns="http://purl.org/dc/terms/">isReferencedBy</name>
<name ns="http://purl.org/dc/terms/">references</name>
</except>
</anyName>
<optional>
Expand All @@ -335,6 +362,12 @@
<text/>
</element>
</zeroOrMore>
<zeroOrMore>
<ref name="dct.isReferencedBy"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dct.references"/>
</zeroOrMore>
</element>
</define>
<!-- -->
Expand Down