Skip to content

Commit

Permalink
remove dependency on wega:doc
Browse files Browse the repository at this point in the history
otherwise I would get frequent errors "exerr:ERROR Exception while transforming node: Too many nested function calls. May be due to infinite recursion" for `wega-util:transform()`
  • Loading branch information
peterstadler committed Jan 11, 2022
1 parent d589d8e commit b45992e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xsl/common_funcs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@
<xsl:value-of select="string-join(($data-collection-path, wega:get-doctype-by-id($docID), concat(substring($docID, 1, 5), 'xx')), '/')"/>
</xsl:function>

<xsl:function name="wega:getOption" as="xs:string">
<xsl:function name="wega:getOption" as="xs:string?">
<xsl:param name="key" as="xs:string"/>
<xsl:value-of select="wega:doc($optionsFile)//entry[@xml:id = $key]/text()"/>
<xsl:if test="doc-available($optionsFile)">
<xsl:value-of select="string(doc($optionsFile)//entry[@xml:id = $key])"/>
</xsl:if>
</xsl:function>

<xsl:function name="wega:wrap-regex" as="xs:string">
Expand Down

0 comments on commit b45992e

Please sign in to comment.