Skip to content

Commit

Permalink
Fix shorthand expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovirt committed Jan 12, 2025
1 parent d896436 commit 0c5e2db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/generator/com/elovirta/pdf/merge.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@
</xsl:function>

<xsl:function name="x:expandShorthand" as="item()*" visibility="public">
<xsl:param name="base" as="item()*"/>
<xsl:param name="base" as="map(*)"/>

<xsl:map>
<xsl:variable name="maps" as="map(*)*">
<xsl:for-each select="map:keys($base)">
<xsl:variable name="key" select="."/>
<xsl:variable name="value" select="map:get($base, $key)"/>
Expand Down Expand Up @@ -284,7 +284,9 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:map>
</xsl:variable>

<xsl:sequence select="map:merge($maps, map{ 'duplicates': 'use-first' }) "/>
</xsl:function>

<xsl:function name="x:exclude">
Expand Down

0 comments on commit 0c5e2db

Please sign in to comment.