Skip to content

Commit

Permalink
Remove (hopefully) useless semicolons from template.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomazErjavec committed Mar 26, 2024
1 parent 0795848 commit 7995677
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts/parlamint-lib.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@
<xsl:with-param name="org" select="$party"/>
<xsl:with-param name="full" select="$full"/>
</xsl:call-template>
<xsl:text>;</xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="politicalParties">
Expand All @@ -656,6 +657,7 @@
<xsl:with-param name="org" select="$party"/>
<xsl:with-param name="full" select="$full"/>
</xsl:call-template>
<xsl:text>;</xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
Expand Down Expand Up @@ -701,7 +703,7 @@
<xsl:value-of select="normalize-space($refs)"/>
</xsl:function>

<!-- Return the name of an organisation -->
<!-- Return the name(s) of an organisation in $out-lang -->
<!-- if $party is empty, so it the result (it is not an error if this happens!) -->
<xsl:template name="orgName">
<xsl:param name="org"/>
Expand All @@ -710,13 +712,11 @@
<xsl:choose>
<xsl:when test="normalize-space($orgName)">
<xsl:value-of select="$orgName"/>
<xsl:text>;</xsl:text>
</xsl:when>
<xsl:when test="normalize-space($org)">
<xsl:message select="concat('WARN: party ', $org/@xml:id, ' without orgName/@full = ', $full)"/>
<xsl:message select="concat('WARN: organisation ', $org/@xml:id, ' without orgName/@full = ', $full)"/>
<!-- As a fall-back, return ID (i.e. the part of the ID after period for e.g. 'politicalParty.VCA') -->
<xsl:value-of select="replace($org/@xml:id, '.+?\.' , '')"/>
<xsl:text>;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
Expand Down

0 comments on commit 7995677

Please sign in to comment.