Skip to content

Commit

Permalink
fix wega:enquote() to cope with arbitrary input
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Jul 15, 2019
1 parent fae2e0c commit 9318e26
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xsl/common_funcs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,11 @@
</xsl:function>

<xsl:function name="wega:enquote">
<xsl:param name="node" as="node()*"/>
<xsl:for-each select="$node">
<xsl:param name="input" as="item()*"/>
<xsl:variable name="inputWrapper">
<xsl:element name="inputWraper"><xsl:sequence select="$input"/></xsl:element>
</xsl:variable>
<xsl:for-each select="$inputWrapper">
<xsl:call-template name="enquote"/>
</xsl:for-each>
</xsl:function>
Expand Down

0 comments on commit 9318e26

Please sign in to comment.