Skip to content
Snippets Groups Projects
Commit 425e670b authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

GeoNames http->https; constraint-IDs

parent 9245e28a
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@
<rng:text/>
</content>
<constraintSpec scheme="schematron" ident="regex">
<constraint> <sch:assert test="matches(.,'(^https?://d-nb\.info/gnd/[0-9]{5,10}-?[0-9]$)|(^http://vocab\.getty\.edu/tgn/[0-9]+$)|(^http://sws\.geonames\.org/[0-9]+/$)|(^http://ta\.sandrart\.net/-place-[0-9]+$)')">Zeichenkette entspricht nicht den Vorgaben.</sch:assert> </constraint>
<constraint> <sch:assert test="matches(.,'(^https?://d-nb\.info/gnd/[0-9]{5,10}-?[0-9]$)|(^http://vocab\.getty\.edu/tgn/[0-9]+$)|(^https?://sws\.geonames\.org/[0-9]+/$)|(^http://ta\.sandrart\.net/-place-[0-9]+$)')">Zeichenkette entspricht nicht den Vorgaben.</sch:assert> </constraint>
</constraintSpec>
<attList>
<attDef ident="type">
......@@ -220,7 +220,7 @@
<datatype>
<rng:data type="string"/>
</datatype>
<constraintSpec scheme="schematron" ident="regex">
<constraintSpec scheme="schematron" ident="linkregex">
<constraint> <sch:pattern> <sch:rule context="tei:link">
<sch:let name="plcid2" value="substring-after(./@target,' #')"/>
<sch:let name="plcid1" value="substring-after(substring-before(./@target,' '),'#')"/>
......@@ -856,7 +856,7 @@ document('../Register/bibliography/bibliography-xyz.xml')//*[@xml:id eq $variabl
<content>
<textNode/>
</content>
<constraintSpec scheme="schematron" ident="regex">
<constraintSpec scheme="schematron" ident="termregex">
<constraint> <sch:assert test="matches(.,'^\S[\s\S]+\S$')">darf nicht mit Leerzeichen beginnen oder enden</sch:assert> </constraint>
</constraintSpec>
<attList>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment