Skip to content

Commit

Permalink
Fixed template match conflict using additional .nav-query-results c…
Browse files Browse the repository at this point in the history
…lass
  • Loading branch information
namedgraph committed Dec 1, 2023
1 parent 8da3846 commit 6cceebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ LIMIT 100]]></sp:text>

<!-- toggle query results to container mode -->

<xsl:template match="*[contains-token(@class, 'query-content')]//ul[@class = 'nav nav-tabs']/li[contains-token(@class, 'container-mode')][not(contains-token(@class, 'active'))]/a" mode="ixsl:onclick">
<xsl:template match="*[contains-token(@class, 'query-content')]//ul[@class = 'nav nav-tabs'][contains-token(@class, 'nav-query-results')]/li[contains-token(@class, 'container-mode')][not(contains-token(@class, 'active'))]/a" mode="ixsl:onclick" priority="1">
<xsl:variable name="this" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/>
<xsl:variable name="container" select="ancestor::div[contains-token(@class, 'query-content')]" as="element()"/>
<xsl:variable name="form" select="$container//form[contains-token(@class, 'sparql-query-form')]" as="element()"/>
Expand Down Expand Up @@ -1358,7 +1358,6 @@ LIMIT 100]]></sp:text>
<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="value" select="$constructor//*[rdf:type/@rdf:resource]" as="element()"/>
<xsl:message>CONTENT.XSL $content-uri: <xsl:value-of select="$content-uri"/></xsl:message>

<!-- deactivate other tabs -->
<xsl:for-each select="../../li">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ WHERE
<xsl:variable name="active-mode" select="xs:anyURI('&ac;ChartMode')" as="xs:anyURI"/>

<xsl:result-document href="?." method="ixsl:append-content">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs nav-query-results">
<li class="chart-mode">
<xsl:if test="$active-mode = '&ac;ChartMode'">
<xsl:attribute name="class" select="'chart-mode active'"/>
Expand Down

0 comments on commit 6cceebf

Please sign in to comment.