Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xslt update based on metanorma/mn-native-pdf@2561328d31f5351315f1513ac30cb01747e159ed #278

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions lib/isodoc/jis/jis.international-standard.xsl
Original file line number Diff line number Diff line change
@@ -1343,23 +1343,25 @@
<fo:table-column column-width="proportional-column-width(3)"/>
<fo:table-column column-width="proportional-column-width(2.2)"/>
<fo:table-column column-width="proportional-column-width(3)"/>
<xsl:variable name="publisher" select="/*/jis:bibdata/jis:contributor[jis:role/@type = 'publisher']/jis:organization/jis:name/jis:variant[@language = 'ja']"/>
<xsl:variable name="authorizer" select="/*/jis:bibdata/jis:contributor[jis:role/@type = 'authorizer']//jis:organization/jis:name"/>
<fo:table-body>
<fo:table-row height="50mm">
<fo:table-cell>
<fo:block><xsl:value-of select="/*/jis:bibdata/jis:contributor[jis:role/@type = 'publisher']/jis:organization/jis:name/jis:variant[@language = 'ja']"/></fo:block>
<fo:block><xsl:value-of select="$publisher"/></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block> </fo:block></fo:table-cell>
<fo:table-cell>
<fo:block><xsl:value-of select="/*/jis:bibdata/jis:contributor[jis:role/@type = 'authorizer']//jis:organization/jis:name"/></fo:block>
<fo:block><xsl:value-of select="$authorizer"/></fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>発行</fo:block>
<fo:block><xsl:if test="normalize-space($publisher) != ''">発行</xsl:if></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block> </fo:block></fo:table-cell>
<fo:table-cell>
<fo:block>審議</fo:block>
<fo:block><xsl:if test="normalize-space($authorizer) != ''">審議</xsl:if></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
@@ -1386,7 +1388,11 @@
<fo:flow flow-name="xsl-region-body" font-family="Noto Serif JP">

<fo:block font-weight="900" font-size="14pt" color="white" letter-spacing="2.5mm">
<xsl:value-of select="$i18n_JIS"/>
<xsl:variable name="coverpage_header" select="normalize-space(/*/jis:metanorma-extension/jis:presentation-metadata/jis:coverpage-header)"/>
<xsl:value-of select="$coverpage_header"/>
<xsl:if test="$coverpage_header = ''">
<xsl:value-of select="$i18n_JIS"/>
</xsl:if>
</fo:block>

<fo:block margin-top="75mm" font-size="14pt" font-weight="500">
@@ -1448,7 +1454,8 @@
</fo:block>

<fo:block margin-top="6.5mm" font-size="8pt" font-weight="500">
<fo:inline padding-right="5mm"><xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'published']/text()"/></fo:inline>改正
<xsl:variable name="revised_date"><xsl:apply-templates select="/*/jis:bibdata/jis:date[@type = 'revised']/text()"/></xsl:variable>
<xsl:if test="normalize-space($revised_date) != ''"><fo:inline padding-right="5mm"><xsl:copy-of select="$revised_date"/></fo:inline>改正</xsl:if>
</fo:block>

</fo:flow>