GeoDCAT-AP [PR]: ResourceType - detected bug in the XSLT

References

This issue has been reported by Antonio Rotundo.

http://joinup.ec.europa.eu/mailman/archives/dcat_application_profile-geo/2015-August/000190.html

 

Explanation

The GeoDCAT-AP XSLT script encodes the INSPIRE metadata element "Resource type" as a parameter with the name "Resource type" and a xPath referring to the element "level" in DQ_Scope class (in DQ_DataQuality entity from ISO 19115/19139).

Antonio points out that the code in the current version of the script is the following:

      <xsl:param name="ResourceType">

            <xls:value-of select="gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:scope/gmd:DQ_Scope/gmd:level/gmd:MD_ScopeCode/@codeListValue"/>

      </xsl:param>

 

However, the parameter should be referred to the element "hierarchyLevel" in MD_Metadata class (as even required in INSPIRE Metadata TG). Therefore, the code should be 

       <xsl:param name="ResourceType">

            <xls:value-of select="gmd:hierarchyLevel/gmd:MD_ScopeCode/@codeListValue"/>

      </xsl:param>

 

The XSLT has been revised according to this bug.

Component

Documentation

Category

improvement

Comments

Mon, 14/09/2015 - 21:44

Login or create an account to comment.