Skip to content

Commit

Permalink
Try to fix XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Dec 21, 2024
1 parent 7377c61 commit 290bd73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@ exclude-result-prefixes="#all"
<!-- render block -->

<xsl:template match="*" mode="ldh:RenderRow">
<xsl:param name="block" as="element()"/>

<xsl:apply-templates mode="#current"/>

<xsl:for-each select="$block/ancestor::div[contains-token(@class, 'span12')][contains-token(@class, 'progress')][contains-token(@class, 'active')]">
<xsl:for-each select="ancestor::div[contains-token(@class, 'span12')][contains-token(@class, 'progress')][contains-token(@class, 'active')]">
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress-striped', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'active', false() ])[current-date() lt xs:date('2000-01-01')]"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ exclude-result-prefixes="#all"
</div>
</xsl:result-document>

<xsl:apply-templates mode="ldh:RenderRow"> <!-- recurse down the block hierarchy -->
<xsl:with-param name="block" select="$block"/>
</xsl:apply-templates>
<xsl:apply-templates mode="ldh:RenderRow"/> <!-- recurse down the block hierarchy -->
</xsl:for-each>

<!-- hide the row with the block controls -->
Expand Down

0 comments on commit 290bd73

Please sign in to comment.