Skip to content

Commit 406cd25

Browse files
committed
$about in the query gets set to the @about of the *parent* block
1 parent 91ec684 commit 406cd25

File tree

1 file changed

+2
-2
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block

1 file changed

+2
-2
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exclude-result-prefixes="#all"
7777
<xsl:param name="block" select="ancestor-or-self::div[contains-token(@class, 'block')][1]" as="element()"/>
7878
<xsl:param name="about" select="$block/@about" as="xs:anyURI"/>
7979
<xsl:param name="this" select="ac:absolute-path(ldh:base-uri(.))" as="xs:anyURI"/> <!-- document URL -->
80-
<xsl:param name="about" select="$block/ancestor::*[@about][1]/@about" as="xs:anyURI"/> <!-- outer @about context -->
80+
<xsl:param name="parent-about" select="$block/ancestor::*[@about][1]/@about" as="xs:anyURI"/> <!-- outer @about context -->
8181
<xsl:param name="container" select="." as="element()"/>
8282
<xsl:param name="graph" select="descendant::*[@property = '&ldh;graph']/@resource" as="xs:anyURI?"/>
8383
<xsl:param name="mode" select="descendant::*[@property = '&ac;mode']/@resource" as="xs:anyURI?"/>
@@ -98,7 +98,7 @@ exclude-result-prefixes="#all"
9898
<ixsl:schedule-action http-request="map{ 'method': 'GET', 'href': $request-uri, 'headers': map{ 'Accept': 'application/rdf+xml' } }">
9999
<xsl:call-template name="ldh:ViewQueryLoad">
100100
<xsl:with-param name="this" select="$this"/>
101-
<xsl:with-param name="about" select="$about"/>
101+
<xsl:with-param name="about" select="$parent-about"/> <!-- $about in the query gets set to the @about of the *parent* block -->
102102
<xsl:with-param name="block" select="$block"/>
103103
<xsl:with-param name="container" select="$container"/>
104104
<xsl:with-param name="mode" select="$mode"/>

0 commit comments

Comments
 (0)