Skip to content

Commit d56a1c2

Browse files
committed
Fixed $body context
1 parent 2d7dcad commit d56a1c2

File tree

1 file changed

+17
-15
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client

1 file changed

+17
-15
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -811,21 +811,23 @@ WHERE
811811
<xsl:choose>
812812
<xsl:when test="$modal">
813813
<xsl:variable name="form" as="element()*">
814-
<xsl:apply-templates select="$body" mode="bs2:Form"> <!-- document level template -->
815-
<xsl:with-param name="about" select="()"/> <!-- don't set @about on the container until after the resource is saved -->
816-
<xsl:with-param name="method" select="'put'"/>
817-
<xsl:with-param name="action" select="ldh:href($ldt:base, ac:absolute-path(ldh:base-uri(.)), map{}, $doc-uri)" as="xs:anyURI"/>
818-
<xsl:with-param name="form-actions-class" select="'form-actions modal-footer'" as="xs:string?"/>
819-
<xsl:with-param name="classes" select="()"/>
820-
<!-- <xsl:with-param name="type-metadata" select="$type-metadata" tunnel="yes"/>-->
821-
<xsl:with-param name="property-metadata" select="$property-metadata" tunnel="yes"/>
822-
<!-- <xsl:with-param name="constructor" select="$constructed-doc" tunnel="yes"/>-->
823-
<xsl:with-param name="constructors" select="()" tunnel="yes"/> <!-- can be empty because modal form is only used to create Container/Item instances -->
824-
<xsl:with-param name="constraints" select="$constraints" tunnel="yes"/>
825-
<xsl:with-param name="shapes" select="()" tunnel="yes"/> <!-- there will be no shapes as modal form is only used to create Container/Item instances -->
826-
<xsl:with-param name="base-uri" select="$doc-uri" tunnel="yes"/> <!-- ac:absolute-path(ldh:base-uri(.)) is empty on constructed documents -->
827-
<!-- <xsl:sort select="ac:label(.)"/> -->
828-
</xsl:apply-templates>
814+
<xsl:for-each select="$body">
815+
<xsl:apply-templates select="." mode="bs2:Form"> <!-- document level template -->
816+
<xsl:with-param name="about" select="()"/> <!-- don't set @about on the container until after the resource is saved -->
817+
<xsl:with-param name="method" select="'put'"/>
818+
<xsl:with-param name="action" select="ldh:href($ldt:base, ac:absolute-path(ldh:base-uri(.)), map{}, $doc-uri)" as="xs:anyURI"/>
819+
<xsl:with-param name="form-actions-class" select="'form-actions modal-footer'" as="xs:string?"/>
820+
<xsl:with-param name="classes" select="()"/>
821+
<!-- <xsl:with-param name="type-metadata" select="$type-metadata" tunnel="yes"/>-->
822+
<xsl:with-param name="property-metadata" select="$property-metadata" tunnel="yes"/>
823+
<!-- <xsl:with-param name="constructor" select="$constructed-doc" tunnel="yes"/>-->
824+
<xsl:with-param name="constructors" select="()" tunnel="yes"/> <!-- can be empty because modal form is only used to create Container/Item instances -->
825+
<xsl:with-param name="constraints" select="$constraints" tunnel="yes"/>
826+
<xsl:with-param name="shapes" select="()" tunnel="yes"/> <!-- there will be no shapes as modal form is only used to create Container/Item instances -->
827+
<xsl:with-param name="base-uri" select="ac:absolute-path(ldh:base-uri(.))" tunnel="yes"/> <!-- ac:absolute-path(ldh:base-uri(.)) is empty on constructed documents -->
828+
<!-- <xsl:sort select="ac:label(.)"/> -->
829+
</xsl:apply-templates>
830+
</xsl:for-each>
829831
</xsl:variable>
830832

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

0 commit comments

Comments
 (0)