Skip to content

Commit

Permalink
replaced resp
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaRichts committed Jan 14, 2021
1 parent 3b31d08 commit 3d27e1e
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 59 deletions.
16 changes: 7 additions & 9 deletions 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-13T16:33:04Z by 'extract-isosch.xsl'. -->
<!-- This file generated 2021-01-14T15:39:30Z by 'extract-isosch.xsl'. -->

<!-- ********************* -->
<!-- namespaces, declared: -->
Expand Down Expand Up @@ -310,14 +310,12 @@
</rule>
</pattern>
<pattern id="isoschematron-constraint-wegaWorks-att.responsibility-resp-check_respTarget-36">
<rule context="@resp">
<assert role="warning" test="not(normalize-space(.) eq '')">@resp attribute should
have content.</assert>
<assert role="warning"
test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*[ancestor::mei:meiHead]/@xml:id">The value in @resp should correspond to the @xml:id attribute of an element within
the metadata header.</assert>
</rule>
</pattern>
<rule context="@resp">
<assert role="warning" test="not(normalize-space(.) eq '')">@resp attribute should have content.</assert>
<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.</assert>
</rule>
</pattern>
<pattern id="schematron-constraint-wegaWorks-att.source-source-check_sourceTarget-37">
<rule context="@source">
<assert role="warning" test="not(normalize-space(.) eq '')">@source attribute
Expand Down
22 changes: 9 additions & 13 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-13T16:33:01Z. .
# Schema generated from ODD source 2021-01-14T15:39:26Z. .
# TEI Edition: Version 4.0.0
# TEI Edition Location: https://www.tei-c.org/Vault/P5//
#
Expand Down Expand Up @@ -4505,10 +4505,8 @@ sch:pattern [
att.responsibility.attributes = att.responsibility.attribute.resp
att.responsibility.attribute.resp =

## Indicates the agent(s) responsible for some aspect of the text's transcription, editing, or encoding. Its value must point to one or more identifiers declared in the document header.
attribute resp {
list { data.URI+ }
}?
##
attribute resp { text }?
sch:pattern [
id =
"wegaWorks-att.responsibility-resp-check_respTarget-constraint-rule-39"
Expand All @@ -4517,24 +4515,22 @@ sch:pattern [
sch:rule [
context = "@resp"
"\x{a}" ~
" "
" "
sch:assert [
role = "warning"
test = "not(normalize-space(.) eq '')"
"@resp attribute should\x{a}" ~
" have content."
"@resp attribute should have content."
]
"\x{a}" ~
" "
" "
sch:assert [
role = "warning"
test =
"every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*[ancestor::mei:meiHead]/@xml:id"
"The value in @resp should correspond to the @xml:id attribute of an element within\x{a}" ~
" the metadata header."
"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."
]
"\x{a}" ~
" "
" "
]
"\x{a}" ~
" "
Expand Down
16 changes: 5 additions & 11 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-13T16:33:01Z. .
Schema generated from ODD source 2021-01-14T15:39:26Z. .
TEI Edition: Version 4.0.0
TEI Edition Location: https://www.tei-c.org/Vault/P5//

Expand Down Expand Up @@ -4499,21 +4499,15 @@ Empfohlene Werte sind: 1] smufl</a:documentation>
<define name="att.responsibility.attribute.resp">
<optional>
<attribute name="resp">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Indicates the agent(s) responsible for some aspect of the text's transcription, editing, or encoding. Its value must point to one or more identifiers declared in the document header.</a:documentation>
<list>
<oneOrMore>
<ref name="data.URI"/>
</oneOrMore>
</list>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
<text/>
</attribute>
</optional>
</define>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="wegaWorks-att.responsibility-resp-check_respTarget-constraint-rule-39">
<sch:rule xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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:*[ancestor::mei:meiHead]/@xml:id">The value in @resp should correspond to the @xml:id attribute of an element within
the metadata header.</sch:assert>
<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>
</pattern>
<define name="att.rest.log.attributes">
Expand Down
22 changes: 9 additions & 13 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-13T16:33:10Z. .
# Schema generated from ODD source 2021-01-14T15:39:51Z. .
# TEI Edition: Version 4.0.0
# TEI Edition Location: https://www.tei-c.org/Vault/P5//
#
Expand Down Expand Up @@ -4505,10 +4505,8 @@ sch:pattern [
att.responsibility.attributes = att.responsibility.attribute.resp
att.responsibility.attribute.resp =

## Indicates the agent(s) responsible for some aspect of the text's transcription, editing, or encoding. Its value must point to one or more identifiers declared in the document header.
attribute resp {
list { data.URI+ }
}?
##
attribute resp { text }?
sch:pattern [
id =
"wegaWorks-att.responsibility-resp-check_respTarget-constraint-rule-39"
Expand All @@ -4517,24 +4515,22 @@ sch:pattern [
sch:rule [
context = "@resp"
"\x{a}" ~
" "
" "
sch:assert [
role = "warning"
test = "not(normalize-space(.) eq '')"
"@resp attribute should\x{a}" ~
" have content."
"@resp attribute should have content."
]
"\x{a}" ~
" "
" "
sch:assert [
role = "warning"
test =
"every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:*[ancestor::mei:meiHead]/@xml:id"
"The value in @resp should correspond to the @xml:id attribute of an element within\x{a}" ~
" the metadata header."
"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."
]
"\x{a}" ~
" "
" "
]
"\x{a}" ~
" "
Expand Down
16 changes: 5 additions & 11 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-13T16:33:10Z. .
Schema generated from ODD source 2021-01-14T15:39:51Z. .
TEI Edition: Version 4.0.0
TEI Edition Location: https://www.tei-c.org/Vault/P5//

Expand Down Expand Up @@ -4499,21 +4499,15 @@ Suggested values include: 1] smufl</a:documentation>
<define name="att.responsibility.attribute.resp">
<optional>
<attribute name="resp">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Indicates the agent(s) responsible for some aspect of the text's transcription, editing, or encoding. Its value must point to one or more identifiers declared in the document header.</a:documentation>
<list>
<oneOrMore>
<ref name="data.URI"/>
</oneOrMore>
</list>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
<text/>
</attribute>
</optional>
</define>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="wegaWorks-att.responsibility-resp-check_respTarget-constraint-rule-39">
<sch:rule xmlns="http://www.tei-c.org/ns/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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:*[ancestor::mei:meiHead]/@xml:id">The value in @resp should correspond to the @xml:id attribute of an element within
the metadata header.</sch:assert>
<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>
</pattern>
<define name="att.rest.log.attributes">
Expand Down
4 changes: 2 additions & 2 deletions src/WeGA_works.odd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
</attList>
</classSpec>

<!--<classSpec ident="att.responsibility" module="MEI.shared" type="atts" mode="change">
<classSpec ident="att.responsibility" module="MEI.shared" type="atts" mode="replace">
<attList org="group">
<attDef ident="resp" usage="opt">
<constraintSpec ident="check_respTarget" scheme="isoschematron" mode="replace">
Expand All @@ -153,7 +153,7 @@
</constraintSpec>
</attDef>
</attList>
</classSpec>-->
</classSpec>


<elementSpec ident="mei" module="MEI.shared" mode="change"
Expand Down

0 comments on commit 3d27e1e

Please sign in to comment.