Skip to content

Commit

Permalink
Merge pull request #448 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 20, 2024
2 parents e2ce228 + 1b1b971 commit 7b52a2e
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
11 changes: 10 additions & 1 deletion lib/isodoc/bipm/bipm.brochure.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10340,7 +10340,16 @@
</xsl:when>
<xsl:otherwise>
<!-- output text from <link>text</link> -->
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.')">
<xsl:call-template name="add-zero-spaces-link-java">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
Expand Down
11 changes: 10 additions & 1 deletion lib/isodoc/bipm/bipm.guide.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10340,7 +10340,16 @@
</xsl:when>
<xsl:otherwise>
<!-- output text from <link>text</link> -->
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.')">
<xsl:call-template name="add-zero-spaces-link-java">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
Expand Down
11 changes: 10 additions & 1 deletion lib/isodoc/bipm/bipm.mise-en-pratique.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10340,7 +10340,16 @@
</xsl:when>
<xsl:otherwise>
<!-- output text from <link>text</link> -->
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.')">
<xsl:call-template name="add-zero-spaces-link-java">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
Expand Down
11 changes: 10 additions & 1 deletion lib/isodoc/bipm/bipm.rapport.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10340,7 +10340,16 @@
</xsl:when>
<xsl:otherwise>
<!-- output text from <link>text</link> -->
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.')">
<xsl:call-template name="add-zero-spaces-link-java">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
Expand Down
11 changes: 10 additions & 1 deletion lib/isodoc/bipm/jcgm.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8139,7 +8139,16 @@
</xsl:when>
<xsl:otherwise>
<!-- output text from <link>text</link> -->
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.')">
<xsl:call-template name="add-zero-spaces-link-java">
<xsl:with-param name="text" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
Expand Down

0 comments on commit 7b52a2e

Please sign in to comment.