@@ -253,18 +253,6 @@ exclude-result-prefixes="#all"
253253 <ixsl : set-property name =" {$textarea-id}" select =" ixsl:eval(string($js-statement/@statement))" object =" ixsl:get(ixsl:window(), 'LinkedDataHub.yasqe')" />
254254 </xsl : function >
255255
256- <!-- render query editor -->
257-
258- <!-- <xsl:template match="textarea[@id][contains-token(@class, 'sparql-query-string')]" mode="ldh:RenderRow" as="item()" priority="1">
259- <xsl:message>YASQE!!!</xsl:message>
260- <xsl:variable name="textarea-id" select="ixsl:get(., 'id')" as="xs:string"/>
261- initialize YASQE SPARQL editor on the textarea
262- <xsl:variable name="js-statement" as="element()">
263- <root statement="YASQE.fromTextArea(document.getElementById('{$textarea-id}'), {{ persistent: null }})"/>
264- </xsl:variable>
265- <ixsl:set-property name="{$textarea-id}" select="ixsl:eval(string($js-statement/@statement))" object="ixsl:get(ixsl:window(), 'LinkedDataHub.yasqe')"/>
266- </xsl:template>-->
267-
268256 <!-- EVENT LISTENERS -->
269257
270258 <!-- submit SPARQL query form (prioritize over default template in form.xsl) -->
@@ -428,12 +416,16 @@ exclude-result-prefixes="#all"
428416 </xsl : result-document >
429417 </xsl : for-each >
430418
431- <xsl : apply-templates select =" $view-html" mode =" ldh:RenderRow" >
432- <xsl : with-param name =" block" select =" $block" />
433- <xsl : with-param name =" container" select =" $view-container" />
434- <xsl : with-param name =" this" select =" $this" />
435- <xsl : with-param name =" base-uri" select =" ac:absolute-path(ldh:base-uri(.))" />
436- </xsl : apply-templates >
419+ <xsl : variable name =" factory" as =" function(item()?) as item()*?" >
420+ <xsl : apply-templates select =" $view-html" mode =" ldh:RenderRow" >
421+ <xsl : with-param name =" block" select =" $block" />
422+ <xsl : with-param name =" container" select =" $view-container" />
423+ <xsl : with-param name =" this" select =" $this" />
424+ <xsl : with-param name =" base-uri" select =" ac:absolute-path(ldh:base-uri(.))" />
425+ </xsl : apply-templates >
426+ </xsl : variable >
427+ <!-- invoke the factory -->
428+ <xsl : sequence select =" $factory(())" />
437429 </xsl : template >
438430
439431 <!-- save query onclick -->
0 commit comments