Skip to content

Commit cd29679

Browse files
committed
Debug $query-uri
1 parent b1584ca commit cd29679

File tree

2 files changed

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

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,13 @@ exclude-result-prefixes="#all"
327327
<xsl:variable name="query-type" select="xs:anyURI('&sp;' || upper-case(substring($query-form, 1, 1)) || lower-case(substring($query-form, 2)))" as="xs:anyURI"/>
328328
<xsl:variable name="block-id" select="'id' || ac:uuid()" as="xs:string"/>
329329
<xsl:variable name="block-uri" select="if ($block/@about) then $block/@about else xs:anyURI(ac:absolute-path(ldh:base-uri(.)) || '#' || $block-id)" as="xs:anyURI"/>
330-
<xsl:variable name="constructor" as="document-node()"> <!-- make sure the structure will match the ldh:RenderRow pattern in view.xsl -->
330+
<xsl:variable name="view-html" as="document-node()"> <!-- make sure the structure will match the ldh:RenderRow pattern in view.xsl -->
331331
<xsl:document>
332332
<div about="{$block-uri}" typeof="&ldh;View">
333333
<div property="&spin;query" resource="{$query-uri}"/>
334334
</div>
335335
</xsl:document>
336336
</xsl:variable>
337-
<!-- <xsl:variable name="view" select="$constructor//*[@rdf:about = $block-uri]" as="element()"/>-->
338337
<xsl:variable name="this" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/> <!-- not the same as $block-uri! -->
339338
<xsl:message>$block-uri: <xsl:value-of select="$block-uri"/> $block-uri: <xsl:value-of select="$block-uri"/></xsl:message>
340339
<xsl:message>$constructor: <xsl:value-of select="serialize($constructor)"/></xsl:message>
@@ -360,12 +359,11 @@ exclude-result-prefixes="#all"
360359
<ixsl:set-style name="width" select="'50%'" object="."/>
361360
</xsl:for-each>
362361

363-
<xsl:apply-templates select="$constructor" mode="ldh:RenderRow">
362+
<xsl:apply-templates select="$view-html" mode="ldh:RenderRow">
364363
<xsl:with-param name="block" select="$block"/>
365364
<xsl:with-param name="container" select="$container//div[contains-token(@class, 'sparql-query-results')]"/>
366365
<xsl:with-param name="this" select="$this"/>
367366
<xsl:with-param name="base-uri" select="ac:absolute-path(ldh:base-uri(.))"/>
368-
<xsl:with-param name="select-query" select="$constructor//*[@rdf:about = $query-uri]"/>
369367
</xsl:apply-templates>
370368
</xsl:template>
371369

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ exclude-result-prefixes="#all"
8484
<xsl:param name="query-uri" select="descendant::*[@property = '&spin;query']/@resource" as="xs:anyURI"/>
8585

8686
<xsl:message>ldh:View ldh:RenderBlock $about: <xsl:value-of select="$about"/></xsl:message>
87-
87+
<xsl:message>ldh:View $query-uri: <xsl:value-of select="$query-uri"/></xsl:message>
88+
8889
<xsl:for-each select="$block//div[contains-token(@class, 'bar')]">
8990
<!-- update progress bar -->
9091
<ixsl:set-style name="width" select="'75%'" object="."/>

0 commit comments

Comments
 (0)