Skip to content

Commit

Permalink
Lookup resource by $content-uri instead of $this
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Aug 13, 2024
1 parent 0ae2a9a commit da59ea1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,13 @@ exclude-result-prefixes="#all"
<xsl:variable name="container" select="." as="element()"/>

<xsl:message>
ldh:LoadBlock @about: <xsl:value-of select="@about"/> @id: <xsl:value-of select="@id"/>
ldh:LoadBlock @about: <xsl:value-of select="@about"/> @id: <xsl:value-of select="@id"/> $this: <xsl:value-of select="$this"/>
ancestor::div[@about][1]: <xsl:value-of select="serialize(ancestor::div[@about][1])"/>
$this: <xsl:value-of select="$this"/>
</xsl:message>

<xsl:choose>
<xsl:when test="key('resources', $this, $doc)">
<xsl:apply-templates select="key('resources', $this, $doc)" mode="ldh:RenderBlock">
<xsl:when test="key('resources', $content-uri, $doc)">
<xsl:apply-templates select="key('resources', $content-uri, $doc)" mode="ldh:RenderBlock">
<xsl:with-param name="this" select="$this"/>
<xsl:with-param name="container" select="$container"/>
<xsl:with-param name="refresh-content" select="$refresh-content"/>
Expand Down

0 comments on commit da59ea1

Please sign in to comment.