Skip to content

Commit

Permalink
Added $content-id
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 24, 2023
1 parent ad44db3 commit 0ef9253
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ exclude-result-prefixes="#all"
</xsl:for-each>
</xsl:variable>
<xsl:variable name="container" select="ancestor::div[contains-token(@class, 'sparql-content')]" as="element()?"/>
<xsl:variable name="content-id" select="$container/@id" as="xs:string"/>
<xsl:variable name="content-uri" select="if ($container/@about) then $container/@about else xs:anyURI(ac:absolute-path(base-uri()) || '#' || $content-id)" as="xs:anyURI"/>
<xsl:variable name="chart-canvas-id" select="ancestor::form/following-sibling::div/@id" as="xs:string"/>
<xsl:variable name="results" select="if (ixsl:contains(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results')) then ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results') else root(ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'content'))" as="document-node()"/>
Expand Down Expand Up @@ -245,6 +246,7 @@ exclude-result-prefixes="#all"
</xsl:for-each>
</xsl:variable>
<xsl:variable name="container" select="ancestor::div[contains-token(@class, 'sparql-content')]" as="element()?"/>
<xsl:variable name="content-id" select="$container/@id" as="xs:string"/>
<xsl:variable name="content-uri" select="if ($container/@about) then $container/@about else xs:anyURI(ac:absolute-path(base-uri()) || '#' || $content-id)" as="xs:anyURI"/>
<xsl:variable name="chart-canvas-id" select="ancestor::form/following-sibling::div/@id" as="xs:string"/>
<xsl:variable name="results" select="if (ixsl:contains(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results')) then ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results') else root(ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'content'))" as="document-node()"/>
Expand Down Expand Up @@ -275,6 +277,7 @@ exclude-result-prefixes="#all"
</xsl:for-each>
</xsl:variable>
<xsl:variable name="container" select="ancestor::div[contains-token(@class, 'sparql-content')]" as="element()?"/>
<xsl:variable name="content-id" select="$container/@id" as="xs:string"/>
<xsl:variable name="content-uri" select="if ($container/@about) then $container/@about else xs:anyURI(ac:absolute-path(base-uri()) || '#' || $content-id)" as="xs:anyURI"/>
<xsl:variable name="chart-canvas-id" select="ancestor::form/following-sibling::div/@id" as="xs:string"/>
<xsl:variable name="results" select="if (ixsl:contains(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results')) then ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'results') else root(ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || $content-uri || '`'), 'content'))" as="document-node()"/>
Expand Down

0 comments on commit 0ef9253

Please sign in to comment.