Skip to content

Commit

Permalink
added add/del to inscription
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaRichts committed Jan 14, 2021
1 parent ca3c3b5 commit 3b31d08
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 11 deletions.
2 changes: 1 addition & 1 deletion schema/de/wegaWorks.isosch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<title>ISO Schematron rules</title>
<!-- This file generated 2021-01-09T20:56:33Z by 'extract-isosch.xsl'. -->
<!-- This file generated 2021-01-13T16:33:04Z by 'extract-isosch.xsl'. -->

<!-- ********************* -->
<!-- namespaces, declared: -->
Expand Down
6 changes: 4 additions & 2 deletions schema/de/wegaWorks.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace teix = "http://www.tei-c.org/ns/Examples"
namespace xi = "http://www.w3.org/2001/XInclude"
namespace xlink = "http://www.w3.org/1999/xlink"

# Schema generated from ODD source 2021-01-09T20:56:30Z. .
# Schema generated from ODD source 2021-01-13T16:33:01Z. .
# TEI Edition: Version 4.0.0
# TEI Edition Location: https://www.tei-c.org/Vault/P5//
#
Expand Down Expand Up @@ -7903,7 +7903,9 @@ inscription =

## An inscription added to an item, such as a bookplate, a note designating the item as a gift, and/or the author's signature.
element inscription {
macro.struc-unstrucContent,
persName*,
date*,
(text | model.textPhraseLike.limited | model.transcriptionLike)*,
att.common.attributes,
att.bibl.attributes,
att.lang.attributes,
Expand Down
18 changes: 15 additions & 3 deletions schema/de/wegaWorks.rng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.music-encoding.org/ns/mei">
<!--
Schema generated from ODD source 2021-01-09T20:56:30Z. .
Schema generated from ODD source 2021-01-13T16:33:01Z. .
TEI Edition: Version 4.0.0
TEI Edition Location: https://www.tei-c.org/Vault/P5//

Expand Down Expand Up @@ -8734,9 +8734,21 @@ Empfohlene Werte sind: 1] plaineAndEasie; 2] humdrumKern; 3] parsons</a:document
</element>
</define>
<define name="inscription">
<element name="inscription">
<element name="inscription" ns="http://www.music-encoding.org/ns/mei">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">An inscription added to an item, such as a bookplate, a note designating the item as a gift, and/or the author's signature.</a:documentation>
<ref name="macro.struc-unstrucContent"/>
<zeroOrMore>
<ref name="persName"/>
</zeroOrMore>
<zeroOrMore>
<ref name="date"/>
</zeroOrMore>
<zeroOrMore>
<choice>
<text/>
<ref name="model.textPhraseLike.limited"/>
<ref name="model.transcriptionLike"/>
</choice>
</zeroOrMore>
<ref name="att.common.attributes"/>
<ref name="att.bibl.attributes"/>
<ref name="att.lang.attributes"/>
Expand Down
6 changes: 4 additions & 2 deletions schema/en/wegaWorks.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace teix = "http://www.tei-c.org/ns/Examples"
namespace xi = "http://www.w3.org/2001/XInclude"
namespace xlink = "http://www.w3.org/1999/xlink"

# Schema generated from ODD source 2021-01-09T20:56:51Z. .
# Schema generated from ODD source 2021-01-13T16:33:10Z. .
# TEI Edition: Version 4.0.0
# TEI Edition Location: https://www.tei-c.org/Vault/P5//
#
Expand Down Expand Up @@ -7904,7 +7904,9 @@ inscription =

## An inscription added to an item, such as a bookplate, a note designating the item as a gift, and/or the author's signature.
element inscription {
macro.struc-unstrucContent,
persName*,
date*,
(text | model.textPhraseLike.limited | model.transcriptionLike)*,
att.common.attributes,
att.bibl.attributes,
att.lang.attributes,
Expand Down
18 changes: 15 additions & 3 deletions schema/en/wegaWorks.rng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:teix="http://www.tei-c.org/ns/Examples" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.music-encoding.org/ns/mei">
<!--
Schema generated from ODD source 2021-01-09T20:56:51Z. .
Schema generated from ODD source 2021-01-13T16:33:10Z. .
TEI Edition: Version 4.0.0
TEI Edition Location: https://www.tei-c.org/Vault/P5//

Expand Down Expand Up @@ -8735,9 +8735,21 @@ Suggested values include: 1] plaineAndEasie; 2] humdrumKern; 3] parsons</a:docum
</element>
</define>
<define name="inscription">
<element name="inscription">
<element name="inscription" ns="http://www.music-encoding.org/ns/mei">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">An inscription added to an item, such as a bookplate, a note designating the item as a gift, and/or the author's signature.</a:documentation>
<ref name="macro.struc-unstrucContent"/>
<zeroOrMore>
<ref name="persName"/>
</zeroOrMore>
<zeroOrMore>
<ref name="date"/>
</zeroOrMore>
<zeroOrMore>
<choice>
<text/>
<ref name="model.textPhraseLike.limited"/>
<ref name="model.transcriptionLike"/>
</choice>
</zeroOrMore>
<ref name="att.common.attributes"/>
<ref name="att.bibl.attributes"/>
<ref name="att.lang.attributes"/>
Expand Down
37 changes: 37 additions & 0 deletions src/WeGA_works.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,21 @@
</attDef>
</attList>
</classSpec>

<!--<classSpec ident="att.responsibility" module="MEI.shared" type="atts" mode="change">
<attList org="group">
<attDef ident="resp" usage="opt">
<constraintSpec ident="check_respTarget" scheme="isoschematron" mode="replace">
<constraint>
<sch:rule context="@resp">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@resp attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*/@xml:id">The value in @resp should correspond to the @xml:id attribute of an element in the same file.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
</attList>
</classSpec>-->


<elementSpec ident="mei" module="MEI.shared" mode="change"
Expand Down Expand Up @@ -373,6 +388,28 @@
</attList>
</elementSpec>

<elementSpec ident="inscription" module="MEI.header" mode="change"
ns="http://www.music-encoding.org/ns/mei">
<content>
<rng:zeroOrMore>
<rng:ref name="persName"/>
</rng:zeroOrMore>
<rng:zeroOrMore>
<rng:ref name="date"/>
</rng:zeroOrMore>
<!--<rng:zeroOrMore>
</rng:zeroOrMore>-->
<rng:zeroOrMore>
<rng:choice>
<rng:text/>
<rng:ref name="model.textPhraseLike.limited" />
<rng:ref name="model.transcriptionLike"/>
</rng:choice>
</rng:zeroOrMore>
</content>
</elementSpec>

<elementSpec ident="work" module="MEI.header" mode="change"
ns="http://www.music-encoding.org/ns/mei">
<content>
Expand Down

0 comments on commit 3b31d08

Please sign in to comment.