Skip to content

Commit

Permalink
changed name of variable in script rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tcatapano committed Aug 15, 2015
1 parent c61566e commit b09a5b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions samples/ead3/schematron_test_ead3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
<unitdatestructured era="bsnsbs">
<datesingle standarddate="10000121ssssssssssssssssssssssssss"></datesingle>
</unitdatestructured>
<unitdatestructured era="bce">
<daterange>
<fromdate notbefore="1920-01-01" notafter="19291231">1920s</fromdate>
<todate notbefore="19500101" notafter="1959-12-311111">195s</todate>
</daterange>
</unitdatestructured>
<unitdate normal="1209-09-23" lang="eng" script="Latn"></unitdate></did>
</archdesc>
</ead>
2 changes: 1 addition & 1 deletion schematron/ead3.sch
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<let name="scriptcodes" value="document('iso_15924.xml')"/>
<rule context="*[exists(@scriptcode | @script)]">
<let name="code" value="normalize-space(.)"/>
<assert test="every $l in (@script | @scriptcode) satisfies $scriptcodes//iso_15924_entry/@alpha_4_code = $l "> The script or scriptcode attribute should contain a code from the iso_15924 codelist. </assert>
<assert test="every $s in (@script | @scriptcode) satisfies $scriptcodes//iso_15924_entry/@alpha_4_code = $s "> The script or scriptcode attribute should contain a code from the iso_15924 codelist. </assert>
</rule>
</pattern>

Expand Down

0 comments on commit b09a5b3

Please sign in to comment.