Skip to content

Commit

Permalink
Pass $method to bs2:RowForm
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 19, 2024
1 parent e336692 commit bfb7b11
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ WHERE
<xsl:variable name="container" select="ancestor::div[@typeof][1]" as="element()?"/> <!-- no container means the form was modal -->
<xsl:variable name="block" select="$container" as="element()?"/> <!-- block has no @about at this stage (before saving it) -->
<xsl:variable name="form" select="." as="element()"/>
<xsl:variable name="id" select="ixsl:get($form, 'id')" as="xs:string"/>
<xsl:variable name="action" select="ixsl:get($form, 'action')" as="xs:anyURI"/>
<xsl:variable name="enctype" select="ixsl:get($form, 'enctype')" as="xs:string"/>
<xsl:variable name="id" select="@id" as="xs:string"/>
<xsl:variable name="action" select="@action" as="xs:anyURI"/>
<xsl:variable name="enctype" select="@enctype" as="xs:string"/>
<xsl:variable name="accept" select="'application/rdf+xml'" as="xs:string"/>
<xsl:variable name="etag" select="ixsl:get(ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.contents'), '`' || ac:absolute-path(ldh:base-uri(.)) || '`'), 'etag')" as="xs:string"/>
<xsl:message>$etag: <xsl:value-of select="$etag"/></xsl:message>
Expand Down Expand Up @@ -771,7 +771,9 @@ WHERE
<!-- POST or PUT constraint violation response is 422 Unprocessable Entity, bad RDF syntax is 400 Bad Request -->
<xsl:when test="?status = (400, 422) and starts-with(?media-type, 'application/rdf+xml')"> <!-- allow 'application/rdf+xml;charset=UTF-8' as well -->
<xsl:variable name="row-form" as="node()*">
<xsl:apply-templates select="?body" mode="bs2:RowForm"/>
<xsl:apply-templates select="?body" mode="bs2:RowForm">
<xsl:with-param name="method" select="$form/@method"/>
</xsl:apply-templates>
</xsl:variable>

<xsl:for-each select="$block">
Expand Down

0 comments on commit bfb7b11

Please sign in to comment.