Skip to content

Commit 8dc7149

Browse files
committed
$view-container fix
1 parent 217c5fe commit 8dc7149

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,16 @@ exclude-result-prefixes="#all"
334334

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

337+
<xsl:variable name="view-container" select="$container//div[contains-token(@class, 'sparql-query-results')]" as="element()"/>
338+
<!-- ensure the HTML structure is compatible with what view expects -->
339+
<xsl:for-each select="$view-container">
340+
<ixsl:set-attribute name="typeof" select="'&ldh;View'" object="$view-container"/>
341+
342+
<xsl:result-document href="?." method="ixsl:replace-content">
343+
<div class="main"></div>
344+
</xsl:result-document>
345+
</xsl:for-each>
346+
337347
<xsl:apply-templates select="$form" mode="ixsl:onsubmit"/>
338348
</xsl:template>
339349

0 commit comments

Comments
 (0)