Skip to content

Commit

Permalink
Update functions.xsl
Browse files Browse the repository at this point in the history
Copy the attribute namespace
  • Loading branch information
frankarensmeier committed Jan 2, 2025
1 parent 4ff16dc commit 1a6e7dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/xslt/modules/functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@
<xsl:variable name="names"
select="distinct-values($attributes/node-name())"/>
<xsl:for-each select="$names">
<xsl:variable name="namespace" select="namespace-uri-from-QName(.)"/>
<xsl:variable name="name" select="."/>
<xsl:variable name="values" as="xs:string*"
select="$attributes[node-name()=$name]/string()"/>
<xsl:if test="exists($values)">
<xsl:attribute name="{$name}"
<xsl:attribute name="{$name}" namespace="{$namespace}"
select="string-join($values, ' ')"/>
</xsl:if>
</xsl:for-each>
Expand Down

0 comments on commit 1a6e7dc

Please sign in to comment.