Skip to content

Commit 86fa0d0

Browse files
committed
fixed an issue with boolean of index-of, using count
1 parent 74147b9 commit 86fa0d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

insert_provenance.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:nmo="http://nomisma.org/ontology#" xmlns:osgeo="http://data.ordnancesurvey.co.uk/ontology/geometry/" xmlns:dcterms="http://purl.org/dc/terms/"
66
xmlns:un="http://www.owl-ontologies.com/Ontology1181490123.owl#" xmlns:nm="http://nomisma.org/id/" xmlns:prov="http://www.w3.org/ns/prov#"
77
xmlns:bio="http://purl.org/vocab/bio/0.1/" xmlns:rdac="http://www.rdaregistry.info/Elements/c/" xmlns:foaf="http://xmlns.com/foaf/0.1/"
8-
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" exclude-result-prefixes="#all" version="2.0">
8+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/" exclude-result-prefixes="#all" version="2.0">
99

1010
<xsl:strip-space elements="*"/>
1111
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
@@ -264,7 +264,7 @@
264264
</xsl:when>
265265
<xsl:when test="$mode = 'Modify'">
266266
<!-- insert an event if the date isn't in a spreadsheet -->
267-
<xsl:if test="not(index-of($dates, $date))">
267+
<xsl:if test="count(index-of($dates, $date)) = 0">
268268
<prov:activity>
269269
<prov:Activity>
270270
<rdf:type rdf:resource="http://www.w3.org/ns/prov#{$mode}"/>

0 commit comments

Comments
 (0)