Skip to content

Commit

Permalink
Check that $shapes is not empty before using in key()
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 9, 2023
1 parent 44badbb commit 2e8341c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ extension-element-prefixes="ixsl"
<xsl:param name="constructors" as="document-node()?" tunnel="yes"/>
<xsl:param name="constraints" as="document-node()?" tunnel="yes"/>
<xsl:param name="shapes" as="document-node()?" tunnel="yes"/>
<xsl:param name="type-shapes" select="key('shapes-by-target-class', $forClass, $shapes)" as="element()*"/>
<xsl:param name="type-shapes" select="if ($shapes) then key('shapes-by-target-class', $forClass, $shapes) else ()" as="element()*"/>
<xsl:param name="constructor" as="document-node()?">
<!-- SHACL shapes take priority over SPIN constructors -->
<xsl:choose use-when="system-property('xsl:product-name') = 'SAXON'">
Expand Down

0 comments on commit 2e8341c

Please sign in to comment.