Skip to content

Commit

Permalink
Merge pull request #577 from frankarensmeier/main
Browse files Browse the repository at this point in the history
Attributes in a non default namespace cause an error
  • Loading branch information
ndw authored Feb 10, 2025
2 parents 4ff16dc + 1a6e7dc commit fc1c920
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 fc1c920

Please sign in to comment.