Skip to content

Commit

Permalink
Removed $html-block usages
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Sep 17, 2024
1 parent 991e292 commit 269d8f1
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,18 +870,15 @@ exclude-result-prefixes="#all"

<!-- TO-DO: move to respective stylesheets -->
<xsl:template match="*[@about][@typeof = ('&ldh;View', '&ldh;Object', '&ldh;ResultSetChart', '&ldh;GraphChart')]" mode="ldh:LoadBlock" priority="2">
<xsl:param name="html-block" select="." as="element()"/>
<xsl:param name="acl-modes" as="xs:anyURI*"/>
<xsl:param name="doc" as="document-node()"/>
<xsl:param name="refresh-content" as="xs:boolean?"/>

<xsl:for-each select="$html-block">
<xsl:call-template name="ldh:LoadBlock">
<xsl:with-param name="acl-modes" select="$acl-modes"/>
<xsl:with-param name="doc" select="$doc"/>
<xsl:with-param name="refresh-content" select="$refresh-content"/>
</xsl:call-template>
</xsl:for-each>
<xsl:call-template name="ldh:LoadBlock">
<xsl:with-param name="acl-modes" select="$acl-modes"/>
<xsl:with-param name="doc" select="$doc"/>
<xsl:with-param name="refresh-content" select="$refresh-content"/>
</xsl:call-template>
</xsl:template>

<xsl:template name="ldh:LoadBlock">
Expand All @@ -895,7 +892,7 @@ exclude-result-prefixes="#all"
serialize(ancestor::div[@about]): <xsl:value-of select="ancestor::div[@about]"/>
</xsl:message>
<xsl:variable name="this" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/> <!-- the page URL -->
<xsl:variable name="block-uri" select="($html-block/@about, $this)[1]" as="xs:anyURI"/> <!-- fallback to @about for charts, queries etc. -->
<xsl:variable name="block-uri" select="(@about, $this)[1]" as="xs:anyURI"/> <!-- fallback to @about for charts, queries etc. -->

<xsl:message>
ldh:LoadBlock @about: <xsl:value-of select="@about"/> @id: <xsl:value-of select="@id"/> $this: <xsl:value-of select="$this"/>
Expand Down

0 comments on commit 269d8f1

Please sign in to comment.