Skip to content

Commit

Permalink
Correct uitlezen van notes-rules.
Browse files Browse the repository at this point in the history
Dat ging onder bepaalde omstandigheden niet goed; hersteld.

Bugfix.
  • Loading branch information
arjan authored and arjan committed Dec 4, 2024
1 parent 3533a17 commit 7859ce2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main/resources/xsl/ConfigCompiler/Imvert2configuration.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,21 @@
<notes-rules root="true">
<xsl:variable name="notes-rules" select="notes-rules"/>
<xsl:apply-templates select="imf:distinct($notes-rules//notes-format)[last()]" mode="#current"/>
<xsl:apply-templates select="imf:distinct($notes-rules//notes-rule[@lang=($language,'#all')])[last()]" mode="#current"/>
</notes-rules>

<xsl:variable name="default" select="$notes-rules//notes-rule[@lang=($language,'#all')]/@default"/>
<xsl:for-each-group select="$notes-rules//notes-rule[@lang=($language,'#all')]" group-by="@lang">
<notes-rule lang="{@lang}" default="{@default}">
<xsl:for-each-group select="current-group()/section" group-by="@title">
<xsl:sequence select="current-group()[last()]"/>
</xsl:for-each-group>
</notes-rule>
</xsl:for-each-group>
</notes-rules>

<version-rules root="true">
<xsl:variable name="version-rules" select="version-rules"/>
<xsl:apply-templates select="$version-rules//version-rule" mode="#current"/>
<xsl:apply-templates select="$version-rules//phase-rule" mode="#current"/>
<xsl:apply-templates select="($version-rules//version-rule)[last()]" mode="#current"/>
<xsl:apply-templates select="($version-rules//phase-rule)[last()]" mode="#current"/>
</version-rules>

<doc-rules root="true">
Expand Down

0 comments on commit 7859ce2

Please sign in to comment.