@@ -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
0 commit comments