Skip to content

Commit

Permalink
XPath fix
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 16, 2023
1 parent d3e530f commit b1c7910
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ WHERE
<xsl:variable name="href" as="xs:anyURI">
<xsl:choose>
<!-- if ldh:ContentMode is active but no mode param explicitly is specified, change the page's URL to reflect that -->
<xsl:when test="not(map:contains($query-params, 'mode')) and id('content-body', ixsl:page())/div[contains-token(@class, 'row-fluid')][1]/ul[contains-token(@class, 'nav-tabs')]/li[contains-token(@class, 'content-mode')][contains-token(@class, 'active')]">
<xsl:when test="not(exists(ixsl:query-params()?mode)) and id('content-body', ixsl:page())/div[contains-token(@class, 'row-fluid')][1]/ul[contains-token(@class, 'nav-tabs')]/li[contains-token(@class, 'content-mode')][contains-token(@class, 'active')]">
<xsl:variable name="fragment" select="substring-after($href, '#')" as="xs:string"/>
<xsl:sequence select="xs:anyURI(ldh:href($ldt:base, ac:absolute-path(base-uri()), map{}, ac:build-uri(ac:absolute-path(base-uri()), map:merge((ixsl:query-params(), map{ 'mode': '&ldh;ContentMode' } ))), $fragment))"/>
</xsl:when>
Expand Down Expand Up @@ -944,9 +944,6 @@ WHERE
<xsl:message>
$href: <xsl:value-of select="$href"/>
$uri: <xsl:value-of select="$uri"/>
<!-- exists($query-params?graph): <xsl:value-of select="exists($query-params?graph)"/>
$query-params?graph[1]: <xsl:value-of select="$query-params?graph[1]"/>-->

exists(ixsl:query-params()?graph): <xsl:value-of select="exists(ixsl:query-params()?graph)"/>
ixsl:query-params()?graph[1]: <xsl:value-of select="ixsl:query-params()?graph[1]"/>
ac:absolute-path($uri): <xsl:value-of select="ac:absolute-path($uri)"/>
Expand Down

0 comments on commit b1c7910

Please sign in to comment.