Skip to content

Commit

Permalink
Apply ldh:RenderRowForm on the inserted row form
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 16, 2024
1 parent fa17be4 commit e5df9d9
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,15 +1056,13 @@ WHERE
<xsl:with-param name="show-cancel-button" select="false()"/>
</xsl:apply-templates>
</xsl:variable>
<!--
<xsl:variable name="row-form" as="element()*">
<xsl:apply-templates select="$row-form" mode="ldh:RenderRowForm"/>
</xsl:variable>
-->

<!-- insert $row-form before the .add-constructor container TO-DO: replace with <xsl:result-document href="?." method="ixsl:insert-after"> when SaxonJS 3 is available https://saxonica.plan.io/issues/5543 -->
<xsl:sequence select="ixsl:call($container, 'before', [ $row-form ])[current-date() lt xs:date('2000-01-01')]"/>

<!-- apply client-side templates on the appended row form (now preceding sibling of the $container) -->
<xsl:apply-templates select="$container/preceding-sibling::*[1]" mode="ldh:RenderRowForm"/>

<ixsl:set-style name="cursor" select="'default'" object="ixsl:page()//body"/>
</xsl:template>

Expand Down

0 comments on commit e5df9d9

Please sign in to comment.