The issue is fixed in ArcGIS Pro 2.7 when the following metadata styles are in use. The original description mentions the problem with the INSPIRE metadata style in ArcGIS Pro 2.5:
- INSPIRE Metadata Directive
- ISO 19139 Metadata Implementation Specification GML 3.2
- ISO 19139 Metadata Implementation Specification
- North American Profile of ISO19115 2003
The issue is non-reproducible in ArcGIS Pro 2.7 when the metadata style Federal Geographic Data Committee (FGDC) Content Standard for Digital Geospatial Metadata (CSDGM) is in use as the https locations are always included in the output.
The issue is not addressed in ArcMap.
解决办法
Navigate to the ArcGIS2ISO19139 XSL style sheet.
Open in Notepad++, and go to line 3422.
Remove <xsl:for-each select="onLineSrc[(starts-with(linkage,'http://';) or starts-with(linkage,'ftp://';)) and ((count(.//*[text()]) - count(./orDesc[starts-with(.,'0')])) > 0)]">
Replace the line with <xsl:for-each select="onLineSrc[(starts-with(linkage,'http://';) or starts-with (linkage,'https://';) or starts-with(linkage,'ftp://';)) and ((count(.//*[text()]) - count(./orDesc[starts-with(.,'0')])) > 0)]">.
Save as a new style sheet (.xsl).
Transform the metadata using the style sheet instead. Open and notice both URLs.