Skip to content

Commit

Permalink
Fix $container value
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 18, 2023
1 parent 342e3ee commit f7257c3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ LIMIT 100]]></sp:text>
<xsl:variable name="service-uri" select="xs:anyURI(ixsl:get(id('query-service'), 'value'))" as="xs:anyURI?"/>
<xsl:variable name="service" select="key('resources', $service-uri, ixsl:get(ixsl:window(), 'LinkedDataHub.apps'))" as="element()?"/>
<xsl:variable name="endpoint" select="($service/sd:endpoint/@rdf:resource/xs:anyURI(.), sd:endpoint())[1]" as="xs:anyURI"/>
<xsl:variable name="container" select="id('content-body', ixsl:page())" as="element()"/>
<xsl:variable name="container" select="ancestor::div[contains-token(@class, 'row-fluid')]" as="element()"/>
<xsl:variable name="container-id" select="ixsl:get($container, 'id')" as="xs:string"/>
<xsl:variable name="results-container-id" select="$container-id || '-sparql-results'" as="xs:string"/>
<xsl:variable name="results-uri" select="ac:build-uri($endpoint, map{ 'query': $query })" as="xs:anyURI"/>
Expand All @@ -1038,21 +1038,21 @@ LIMIT 100]]></sp:text>

<ixsl:set-style name="cursor" select="'progress'" object="ixsl:page()//body"/>

<xsl:choose>
<!-- <xsl:choose>
<xsl:when test="not(id($results-container-id, ixsl:page()))">
<xsl:for-each select="$container">
<xsl:result-document href="?." method="ixsl:append-content">
<div id="{$results-container-id}" class="sparql-results" about="{$results-uri}"/> <!-- used as $content-uri in chart form's onchange events -->
<div id="{$results-container-id}" class="sparql-results" about="{$results-uri}"/> used as $content-uri in chart form's onchange events
</xsl:result-document>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<!-- update @about value -->
update @about value
<xsl:for-each select="id($results-container-id, ixsl:page())">
<ixsl:set-attribute name="about" select="$results-uri" object="."/>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:choose>-->

<xsl:variable name="request" as="item()*">
<ixsl:schedule-action http-request="$request">
Expand Down

0 comments on commit f7257c3

Please sign in to comment.