diff --git a/schemas/iso19139/src/main/plugin/iso19139/extract-relations.xsl b/schemas/iso19139/src/main/plugin/iso19139/extract-relations.xsl
index 10e10352ab8..7aa2b12d7a1 100644
--- a/schemas/iso19139/src/main/plugin/iso19139/extract-relations.xsl
+++ b/schemas/iso19139/src/main/plugin/iso19139/extract-relations.xsl
@@ -35,7 +35,6 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:util="java:org.fao.geonet.util.XslUtil"
xmlns:digestUtils="java:org.apache.commons.codec.digest.DigestUtils"
- xmlns:exslt="http://exslt.org/common"
xmlns:gn-fn-rel="http://geonetwork-opensource.org/xsl/functions/relations"
version="2.0"
exclude-result-prefixes="#all">
@@ -110,7 +109,7 @@
-
+
-
+
-
+
@@ -1147,7 +1145,7 @@
{
- "hash": "",
+ "hash": "",
"idx": ,
"protocol":"",
"mimeType":"
+
+
+
+
+
+
-
+ and ($resourceHash = '' or digestUtils:md5Hex(normalize-space(.)) = $resourceHash)">
+
+
+
+
+
+
+
+
-
@@ -243,7 +253,7 @@ Note: It assumes that it will be adding new items in
-
+
diff --git a/schemas/iso19139/src/main/plugin/iso19139/process/onlinesrc-remove.xsl b/schemas/iso19139/src/main/plugin/iso19139/process/onlinesrc-remove.xsl
index 718f483eced..5ea7b210773 100644
--- a/schemas/iso19139/src/main/plugin/iso19139/process/onlinesrc-remove.xsl
+++ b/schemas/iso19139/src/main/plugin/iso19139/process/onlinesrc-remove.xsl
@@ -53,15 +53,25 @@ Stylesheet used to remove a reference to a online resource.
-
+
+
+
+
+
+ and ($resourceHash = '' or digestUtils:md5Hex(normalize-space(.)) = $resourceHash)
+ )">
+
+
+
+
+