By applying the XSLT, for each instance of the Bounding Box (gmd:EX_GeographicBoundingBox element) in the ISO INSPIRE XML, 4 instances of the locn:geometry property and 4 instances of the dcat:bbox property are created in the transformation output.
<gmd:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_GeographicBoundingBox>
<gmd:westBoundLongitude>
<gco:Decimal>8.14</gco:Decimal>
</gmd:westBoundLongitude>
<gmd:eastBoundLongitude>
<gco:Decimal>9.83</gco:Decimal>
</gmd:eastBoundLongitude>
<gmd:southBoundLatitude>
<gco:Decimal>38.85</gco:Decimal>
</gmd:southBoundLatitude>
<gmd:northBoundLatitude>
<gco:Decimal>41.31</gco:Decimal>
</gmd:northBoundLatitude>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
</gmd:EX_Extent>
</gmd:extent>
<dct:spatial rdf:parseType="Resource">
<rdf:type rdf:resource="http://purl.org/dc/terms/Location"/>
<locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#wktLiteral"><![CDATA[POLYGON((8.14 41.31,9.83 41.31,9.83 38.85,8.14 38.85,8.14 41.31))]]></locn:geometry>
<locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#gmlLiteral"><![CDATA[<gml:Envelope srsName="http://www.opengis.net/def/crs/OGC/1.3/CRS84"><gml:lowerCorner>8.14 38.85</gml:lowerCorner><gml:upperCorner>9.83 41.31</gml:upperCorner></gml:Envelope>]]></locn:geometry>
<locn:geometry rdf:datatype="https://www.iana.org/assignments/media-types/application/vnd.geo+json"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></locn:geometry>
<locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#geoJSONLiteral"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></locn:geometry>
<dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#wktLiteral"><![CDATA[POLYGON((8.14 41.31,9.83 41.31,9.83 38.85,8.14 38.85,8.14 41.31))]]></dcat:bbox>
<dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#gmlLiteral"><![CDATA[<gml:Envelope srsName="http://www.opengis.net/def/crs/OGC/1.3/CRS84"><gml:lowerCorner>8.14 38.85</gml:lowerCorner><gml:upperCorner>9.83 41.31</gml:upperCorner></gml:Envelope>]]></dcat:bbox>
<dcat:bbox rdf:datatype="https://www.iana.org/assignments/media-types/application/vnd.geo+json"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></dcat:bbox>
<dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#geoJSONLiteral"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></dcat:bbox>
</dct:spatial>
Only one property should be used in the transformation output and with only one instance.
By applying the XSLT, for each instance of the Bounding Box (gmd:EX_GeographicBoundingBox element) in the ISO INSPIRE XML, 4 instances of the locn:geometry property and 4 instances of the dcat:bbox property are created in the transformation output.
As an example, this is the input bounding box:
and this is the output:
Only one property should be used in the transformation output and with only one instance.