You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was trying to get a fully validated ISO 19115 metadata but I was always facing this error Constraints related to access and use
in all the recent Geonetwork version.
I decided to dig a little bit in XSL file and I probably found the error.
I would like to ask you to check if my suggestion is correct or if I'm misunderstanding something.
Looking at the file /core-geonetwork/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3.2018/schematron/schematron-rules-inspire.xsl
at line 2184 is defined the variable useLimitation_count.
This variable, probably, is not well defined because in my metadata I have two nodes useLimitation_count but if I check the value of the count function it always returns 0.
On the contrary, if I define the variable as follow:
<xsl:variable name="VeB_useLimitation_count" select="count(//mdb:identificationInfo/mri:MD_DataIdentification/mri:resourceConstraints/*/mco:useLimitation/gco:CharacterString/text())"/>
(variable name is a temporary one)
then the error disappears, the count function returns a value different from zero and the metadata ISO19115 is fully validated.
To summarize I will suggest changing this line:
l. 2184 <xsl:variable name="useLimitation_count" select="count(mco:useLimitation/*/text())"/>
Hi, first when you do schematron, you have to deal with *.sch files which are compiled into XSL when the application starts or when using GET /api/0.1/standards/reload in the API.
Hi,
I was trying to get a fully validated ISO 19115 metadata but I was always facing this error
Constraints related to access and use
in all the recent Geonetwork version.
I decided to dig a little bit in XSL file and I probably found the error.
I would like to ask you to check if my suggestion is correct or if I'm misunderstanding something.
Looking at the file
/core-geonetwork/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19115-3.2018/schematron/schematron-rules-inspire.xsl
at line 2184 is defined the variable useLimitation_count.
This variable, probably, is not well defined because in my metadata I have two nodes useLimitation_count but if I check the value of the count function it always returns 0.
On the contrary, if I define the variable as follow:
<xsl:variable name="VeB_useLimitation_count" select="count(//mdb:identificationInfo/mri:MD_DataIdentification/mri:resourceConstraints/*/mco:useLimitation/gco:CharacterString/text())"/>
(variable name is a temporary one)
then the error disappears, the count function returns a value different from zero and the metadata ISO19115 is fully validated.
To summarize I will suggest changing this line:
l. 2184
<xsl:variable name="useLimitation_count" select="count(mco:useLimitation/*/text())"/>
with this one
<xsl:variable name="useLimitation_count" select="count(//mdb:identificationInfo/mri:MD_DataIdentification/mri:resourceConstraints/mco:MD_LegalConstraints/mco:useLimitation/gco:CharacterString/text())"/>
If you prefer to not change the variable definition, I guess that at line 2172 and following there are errors in the definition of the Xpath.
In my opinion, the trick could be there too.
Could you please check this my suggestion??
Thanks in advance.
Bartolomeo
The text was updated successfully, but these errors were encountered: