Skip to content

Commit

Permalink
ISO xslt updated for note and example rendering in layout 1951, metan…
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Aug 4, 2024
1 parent fc85110 commit 3b6bc81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3873,7 +3873,7 @@
<xsl:if test="$namespace = 'iso'">
<xsl:variable name="note_name" select="*[local-name() = 'name']"/>
<xsl:if test="$layoutVersion = '1951'">
<xsl:if test="$revision_date_num &lt; 19680101">
<xsl:if test="$revision_date_num &lt; 19610101">
<xsl:attribute name="padding-right">0mm</xsl:attribute>
</xsl:if>
</xsl:if>
Expand Down Expand Up @@ -15417,7 +15417,7 @@
$namespace = 'rsd'">inline</xsl:when> <!-- display first Example paragraph on the same line as EXAMPLE title -->
<xsl:when test="$namespace = 'iso'">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951'">list</xsl:when>
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19610101">list</xsl:when>
<xsl:otherwise>inline</xsl:otherwise>
</xsl:choose>
</xsl:when>
Expand Down Expand Up @@ -15574,7 +15574,7 @@
<xsl:when test="$num = 1 and not(contains($fo_element, 'block'))">inline</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$layoutVersion = '1951'">list</xsl:when>
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19610101">list</xsl:when>
<xsl:otherwise>block</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
Expand Down
13 changes: 10 additions & 3 deletions xslt_src/iso.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,14 @@
</fo:block>
<fo:block margin-top="2mm" font-size="8pt" font-weight="bold">
<xsl:call-template name="add-letter-spacing">
<xsl:with-param name="text" select="java:toUpperCase(java:java.lang.String.new(/iso:iso-standard/iso:bibdata/iso:copyright/iso:owner/iso:organization/iso:name))"/>
<xsl:with-param name="text">
<xsl:choose>
<xsl:when test="$lang = 'fr'"><xsl:value-of select="java:toUpperCase(java:java.lang.String.new('Organisation Internationale de Normalisation'))"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/iso:iso-standard/iso:bibdata/iso:copyright/iso:owner/iso:organization/iso:name))"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="letter-spacing" select="0.55"/>
</xsl:call-template>
</fo:block>
Expand Down Expand Up @@ -4295,7 +4302,7 @@

<xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']/text()" priority="5">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19680101">
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19610101">
<xsl:call-template name="smallcaps"/>
<xsl:value-of select="concat('. ', $em_dash, ' ')"/>
</xsl:when>
Expand All @@ -4308,7 +4315,7 @@

<xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']/text()" priority="5">
<xsl:choose>
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19680101">
<xsl:when test="$layoutVersion = '1951' and $revision_date_num &lt; 19610101">
<xsl:call-template name="smallcaps"/>
<xsl:text>:</xsl:text>
</xsl:when>
Expand Down

0 comments on commit 3b6bc81

Please sign in to comment.