Skip to content

Commit

Permalink
Standard / ISO / Mimefiletype encoding.
Browse files Browse the repository at this point in the history
Do not switch encoding of protocol if mimetype is empty.
Preserve CharacterString if no mimetype.
  • Loading branch information
fxprunayre committed Aug 29, 2023
1 parent b43f881 commit 59c9b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@

<xsl:template name="setProtocol">
<xsl:choose>
<xsl:when test="$mimeTypeStrategy = 'mimeType'">
<xsl:when test="$mimeTypeStrategy = 'mimeType' and $mimeType != ''">
<gcx:MimeFileType type="{$mimeType}">
<xsl:value-of select="$protocol"/>
</gcx:MimeFileType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ Insert is made in first transferOptions found.

<xsl:template name="setProtocol">
<xsl:choose>
<xsl:when test="$mimeTypeStrategy = 'mimeType'">
<xsl:when test="$mimeTypeStrategy = 'mimeType' and $mimeType != ''">
<gmx:MimeFileType type="{$mimeType}">
<xsl:value-of select="$protocol"/>
</gmx:MimeFileType>
Expand Down

0 comments on commit 59c9b0e

Please sign in to comment.