SEMICeu / iso-19139-to-dcat-ap

Reference XSLT-based implementation of GeoDCAT-AP
European Union Public License 1.2
15 stars 9 forks source link

Avoid error on multilingual organisation name. #41

Closed fxprunayre closed 1 month ago

fxprunayre commented 9 months ago

eg.

<gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
        <gco:CharacterString>Bundesamt für Landestopografie swisstopo</gco:CharacterString>
        <gmd:PT_FreeText>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#DE">Bundesamt für Landestopografie swisstopo</gmd:LocalisedCharacterString>
          </gmd:textGroup>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#FR">Office fédéral de topographie swisstopo</gmd:LocalisedCharacterString>
          </gmd:textGroup>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#IT">Ufficio federale di topografia swisstopo</gmd:LocalisedCharacterString>
          </gmd:textGroup>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#EN">Federal Office of Topography swisstopo</gmd:LocalisedCharacterString>
          </gmd:textGroup>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#RM">Uffizi federal da topografia swisstopo</gmd:LocalisedCharacterString>
          </gmd:textGroup>
        </gmd:PT_FreeText>
      </gmd:organisationName>

Error is

Unable to perform XPath operation. A sequence of more than one item is not allowed as the first argument of normalize-space() ("Bundesamt für Landestopografie...", "Bundes...")