Skip to content

Commit

Permalink
xsl:param has to be first in a template
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Sep 8, 2024
1 parent b7cdc2a commit 23a4338
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ exclude-result-prefixes="#all"
<!-- override inline editing form for content types (do nothing if the button is disabled) - prioritize over form.xsl -->

<xsl:template match="div[contains-token(@class, 'row-fluid')]//button[contains-token(@class, 'btn-edit')][not(contains-token(@class, 'disabled'))]" mode="ixsl:onclick" priority="1">
<xsl:sequence select="ixsl:call(ixsl:event(), 'preventDefault', [])"/>
<!-- for content types, button.btn-edit is placed in its own div.row-fluid, therefore the next row is the actual container -->
<xsl:param name="container" select="ancestor::div[contains-token(@class, 'row-fluid')][1]/following-sibling::div[contains-token(@class, 'row-fluid')]" as="element()"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ WHERE
<!-- enable inline editing form (do nothing if the button is disabled) -->

<xsl:template match="div[contains-token(@class, 'row-fluid')]//button[contains-token(@class, 'btn-edit')][not(contains-token(@class, 'disabled'))]" mode="ixsl:onclick">
<xsl:sequence select="ixsl:call(ixsl:event(), 'preventDefault', [])"/>
<xsl:param name="container" select="ancestor::div[contains-token(@class, 'row-fluid')][1]" as="element()"/>
<xsl:param name="about" select="ancestor::div[@about][1]/@about" as="xs:anyURI"/>
<xsl:param name="graph" as="xs:anyURI?"/>

<xsl:sequence select="ixsl:call(ixsl:event(), 'preventDefault', [])"/>
<ixsl:set-style name="cursor" select="'progress'" object="ixsl:page()//body"/>

<xsl:message>ixsl:get(., 'baseURI'): <xsl:value-of select="ixsl:get(., 'baseURI')"/></xsl:message>
Expand Down

0 comments on commit 23a4338

Please sign in to comment.