Skip to content

Commit

Permalink
Merge pull request #491 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Feb 5, 2024
2 parents 0a1c66c + b1f6382 commit 8955e95
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 45 deletions.
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.implementers-guide.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.in-force.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.recommendation-annex.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.recommendation-supplement.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.recommendation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.resolution.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.service-publication.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.technical-paper.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down
10 changes: 5 additions & 5 deletions lib/isodoc/itu/itu.technical-report.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5959,13 +5959,13 @@
<tr>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_1')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_1')"/>
</xsl:attribute>
<xsl:apply-templates/>
</td>
<td>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_2')"/>
<xsl:value-of select="concat($id,'@',$row_number,'_2')"/>
</xsl:attribute>

<xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]">
Expand Down Expand Up @@ -7210,15 +7210,15 @@
</xsl:choose>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_',$divide)"/>
</xsl:attribute>

<xsl:for-each select="*[local-name() = 'p']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:variable name="p_num" select="count(preceding-sibling::*[local-name() = 'p']) + 1"/>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_p_',$p_num,'_',$divide)"/>
</xsl:attribute>

<!-- <xsl:copy-of select="node()" /> -->
Expand Down Expand Up @@ -7282,7 +7282,7 @@
<xsl:variable name="num" select="count(preceding-sibling::word) + 1"/>
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="concat($id,'_',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
<xsl:value-of select="concat($id,'@',$row_number,'_',$col_number,'_word_',$num,'_',$divide)"/>
</xsl:attribute>
<xsl:copy-of select="node()"/>
</xsl:copy>
Expand Down

0 comments on commit 8955e95

Please sign in to comment.