2.4.1.15 Repeating Section Control
A repeating section control acts as a container for other controls that can appear multiple times in the same form. A REPEATING_SECTION MUST have one of the symbols in the following table.
Symbol |
Description |
---|---|
REPEATING_SECTION_CALL |
The first part of the repeating section control that indicates where the repeating section is rendered. |
REPEATING_SECTION_BODY_ WITHOUT_CONDITIONAL_HIDING |
The second part of the repeating section that defines the properties of the repeating section and its content. |
REPEATING_SECTION_BODY_ WITHOUT_CONDITIONAL_HIDING |
The second part of the repeating section that defines the properties of the repeating section and its content. This part is used when the section is conditionally hidden. |
A REPEATING_SECTION MUST consist of a REPEATING_SECTION_CALL at the point in the XSL where the control appears, which is either the body of the main template or another XSL template, and a REPEATING_SECTION_BODY that defines the section and appears as a separate XSL template. TEMPLATE_MODE_ID values in REPEATING_SECTION_CALL and REPEATING_SECTION_BODY MUST match.
REPEATING_SECTION_CALL: SIMPLE_SECTION_CALL or
-
(CHECK_FOR_GETDOM_BEGIN1 <xsl:apply-templates select="(GROUP_XPATH/)?RELATIVE_REPEATING_GROUP_XPATH" mode="TEMPLATE_MODE_ID1"/> (<div class="optionalPlaceholder" xd:xmlToEdit="XML_TO_EDIT_NAME" tabIndex="TABINDEX" xd:action="xCollection::insert" align="ALIGN" style="STYLE_WIDTH">ANY_STRING</div>)? CHECK_FOR_GETDOM_END1)
REPEATING_SECTION_BODY: REPEATING_SECTION_BODY_WITHOUT_CONDITIONAL_HIDING or REPEATING_SECTION_BODY_WITH_CONDITIONAL_HIDING.
REPEATING_SECTION_BODY_WITHOUT_CONDITIONAL_HIDING:
-
<xsl:template match="RELATIVE_REPEATING_GROUP_XPATH" mode="TEMPLATE_MODE_ID1"> <div class="xdRepeatingSection xdRepeating" title="ANY_STRING" (style="SECTION_STYLE")? align="ALIGN" xd:xctname="RepeatingSection" xd:CtrlId="CONTROL_ID" (tabIndex="-1")? (xd:postbackModel="POSTBACKMODEL")?> XML_HTML_4_1_WITH_CONTROLS (<xsl:attribute name="style">SECTION_STYLE(<xsl:choose> (<xsl:when test="BOOLEAN_XPATH_EXPRESSION"/>| <xsl:when test="BOOLEAN_XPATH_EXPRESSION">STYLE_DISPLAY_NONE</xsl:when>| <xsl:when test="BOOLEAN_XPATH_EXPRESSION">STYLE_BACKGROUND_COLOR</xsl:when>)+ </xsl:choose>)? (<xsl:if test="BOOLEAN_XPATH_EXPRESSION">STYLE_DISABLE_CHILD_XML_TO_EDIT</xsl:if>)* </xsl:attribute>)? </div> </xsl:template>
REPEATING_SECTION_BODY_WITH_CONDITIONAL_HIDING:
-
<xsl:template match="RELATIVE_REPEATING_GROUP_XPATH" mode="TEMPLATE_MODE_ID1"> <xsl:if test="BOOLEAN_XPATH_EXPRESSION"> <div class="xdRepeatingSection xdRepeating" title="ANY_STRING" (style="SECTION_STYLE")? align="ALIGN" xd:xctname="RepeatingSection" xd:CtrlId="CONTROL_ID" (tabIndex="-1")? (xd:postbackModel="POSTBACKMODEL")?> XML_HTML_4_1_WITH_CONTROLS (<xsl:attribute name="style">SECTION_STYLE(<xsl:choose> (<xsl:when test="BOOLEAN_XPATH_EXPRESSION"/>| <xsl:when test="BOOLEAN_XPATH_EXPRESSION">STYLE_DISPLAY_NONE</xsl:when>| <xsl:when test="BOOLEAN_XPATH_EXPRESSION">STYLE_BACKGROUND_COLOR</xsl:when>)+ </xsl:choose>)? (<xsl:if test="BOOLEAN_XPATH_EXPRESSION">STYLE_DISABLE_CHILD_XML_TO_EDIT</xsl:if>)* </xsl:attribute>)? </div> </xsl:if> </xsl:template>
Control-specific attributes used by the repeating section control are as follows: