2.4.1.21.8 Linked Picture Control

The linked picture control allows a user to specify a URL of a picture that is displayed in the form. The user can also specify a description for the picture. The following table describes the symbols for a linked picture control.

Symbol

Description

LINKED_PICTURE_SIMPLE

The linked picture control only allows the user to specify a URL of a picture. This control is bound to a LEAF_XPATH.

LINKED_PICTURE_EXPRESSION

The linked picture control only allows the user to specify a URL of a picture. The control is bound to a STRING_XPATH_EXPRESSION.

LINKED_PICTURE_SIMPLE_WITH_DESCRIPTION

The linked picture control allows the user to specify a URL of a picture, as well as a description of the picture. The binding for the URL is a LEAF_XPATH.

LINKED_PICTURE_EXPRESSION_WITH_DESCRIPTION

The linked picture control allows the user to specify a URL of a picture, as well as a description of the picture. The binding for the URL is a STRING_XPATH_EXPRESSION.

LINKED_PICTURE_SIMPLE:

 <img hideFocus="1" class="xdLinkedPicture" xd:xctname="LinkedImage" xd:boundProp="src" tabStop="true" alt="ANY_STRING1" displaytext="" (align="ALIGN")? xd:CtrlId="CONTROL_ID" (xd:binding="LEAF_XPATH1")? (accessKey="SINGLE_CHARACTER")? (title="ANY_STRING2")? (width="WIDTH" height="HEIGHT")? (tabIndex="TAB_INDEX")? (xd:postbackModel="POSTBACKMODEL")? (disabled="disabled" xd:disableEditing="yes")? (style="LINKED_PICTURE_STYLE")?>
     CHECK_FOR_GETDOM_BEGIN1
     LINKED_PICTURE_CONDITIONAL_FORMATTING?
     <xsl:attribute name="src">
         <xsl:value-of select="LEAF_XPATH1" />
     </xsl:attribute>
     CHECK_FOR_GETDOM_END1
 </img>

LINKED_PICTURE_EXPRESSION:

 <img hideFocus="1" class="xdLinkedPicture" xd:xctname="LinkedImage" xd:boundProp="src" tabStop="true" displaytext="" disabled="disabled" xd:disableEditing="yes" alt="ANY_STRING1" xd:CtrlId="CONTROL_ID" xd:binding="STRING_XPATH_EXPRESSION1" (align="ALIGN")? (accessKey="SINGLE_CHARACTER")? (title="ANY_STRING2")? (height="HEIGHT" width="WIDTH")? (tabIndex="TAB_INDEX")? (xd:postbackModel="POSTBACKMODEL")? (style="LINKED_PICTURE_STYLE")?>
     CHECK_FOR_GETDOM_BEGIN1
     LINKED_PICTURE_CONDITIONAL_FORMATTING?
     <xsl:attribute name="src">
         <xsl:value-of select="STRING_XPATH_EXPRESSION1" />
     </xsl:attribute>
     CHECK_FOR_GETDOM_END1
 </img>

LINKED_PICTURE_SIMPLE_WITH_DESCRIPTION:

 <img hideFocus="1" class="xdLinkedPicture" xd:xctname="LinkedImage" xd:boundProp="src" xd:boundPropSecondary="displaytext" tabStop="true" xd:CtrlId="CONTROL_ID" (align="ALIGN")? xd:binding="LEAF_XPATH1" xd:binding_secondary="LEAF_XPATH2" (accessKey="SINGLE_CHARACTER")? (disabled="disabled" xd:disableEditing="yes")? (height="HEIGHT" width="WIDTH")? (tabIndex="TAB_INDEX")? (xd:postbackModel="POSTBACKMODEL")? (style="LINKED_PICTURE_STYLE")?>
     CHECK_FOR_GETDOM_BEGIN1
     LINKED_PICTURE_CONDITIONAL_FORMATTING?
     <xsl:attribute name="src">
         <xsl:value-of select=" LEAF_XPATH1" />
     </xsl:attribute>
     <xsl:attribute name="displaytext">
         <xsl:value-of select="LEAF_XPATH2" />
     </xsl:attribute>
     <xsl:attribute name="alt">
         <xsl:choose>
             <xsl:when test="string-length(LEAF_XPATH1) &gt; 0">
                 <xsl:value-of select="LEAF_XPATH2" />
             </xsl:when>
             (<xsl:otherwise/> | <xsl:otherwise>ANY_STRING1</xsl:otherwise>)
         </xsl:choose>
     </xsl:attribute>
     (<xsl:if test="string-length(LEAF_XPATH1) = 0">
         <xsl:attribute name="title">ANY_STRING2</xsl:attribute>
     </xsl:if>)?
     CHECK_FOR_GETDOM_END1
 </img>

LINKED_PICTURE_EXPRESSION_WITH_DESCRIPTION:

 <img hideFocus="1" class="xdLinkedPicture" xd:xctname="LinkedImage" xd:boundProp="src" xd:boundPropSecondary="displaytext" tabStop="true" xd:CtrlId="CONTROL_ID" xd:binding="STRING_XPATH_EXPRESSION1" xd:binding_secondary=" LEAF_XPATH1"  (align="ALIGN")? (accessKey="SINGLE_CHARACTER")? disabled="disabled" xd:disableEditing="yes" (height="HEIGHT" width="WIDTH")? (tabIndex="TAB_INDEX")? (xd:postbackModel="POSTBACKMODEL")? (style="LINKED_PICTURE_STYLE")?>
     CHECK_FOR_GETDOM_BEGIN1
     LINKED_PICTURE_CONDITIONAL_FORMATTING?
     <xsl:attribute name="src">
         <xsl:value-of select="STRING_XPATH_EXPRESSION1" />
     </xsl:attribute>
     <xsl:attribute name="displaytext">
         <xsl:value-of select="LEAF_XPATH1" />
     </xsl:attribute>
     <xsl:attribute name="alt">
         <xsl:choose>
             <xsl:when test="string-length(STRING_XPATH_EXPRESSION1) &gt; 0">
                 <xsl:value-of select="LEAF_XPATH1" />
             </xsl:when>
             (<xsl:otherwise/>)
         </xsl:choose>
     </xsl:attribute>
     (<xsl:if test="string-length(STRING_XPATH_EXPRESSION1) = 0">
         <xsl:attribute name="title">ANY_STRING2</xsl:attribute>
     </xsl:if>)?
     CHECK_FOR_GETDOM_END1
 </img>

LINKED_PICTURE_CONDITIONAL_FORMATTING:

 (<xsl:attribute name="style">LINKED_PICTURE_STYLE
     <xsl:choose>
         (<xsl:when test="BOOLEAN_XPATH_EXPRESSIONX">STYLE_DISPLAY_NONE; STYLE_CAPTION</xsl:when>|
         <xsl:when test="BOOLEAN_XPATH_EXPRESSIONY">STYLE_CAPTION</xsl:when>|
         <xsl:when test="BOOLEAN_XPATH_EXPRESSIONZ">LINKED_PICTURE_CONDITIONAL_FORMATTING_STYLE</xsl:when>)+
     </xsl:choose>
 </xsl:attribute>)?
 (<xsl:choose>
     (<xsl:when test="BOOLEAN_XPATH_EXPRESSIONX"/>|
     <xsl:when test="BOOLEAN_XPATH_EXPRESSIONY">
         <xsl:attribute name="disabled">true</xsl:attribute>
     </xsl:when>)+
 </xsl:choose>)?

LINKED_PICTURE_STYLE: Semicolon-delimited list of (STYLE_BORDER?, STYLE_BACKGROUND_COLOR?, STYLE_COLOR?, STYLE_WIDTH?, STYLE_HEIGHT?)

LINKED_PICTURE_CONDITIONAL_FORMATTING_STYLE: STYLE_DISPLAY_NONE or Semicolon-delimited list of (STYLE_BACKGROUND_COLOR?, STYLE_COLOR?, STYLE_CAPTION)

The following table lists control-specific attributes used by the linked picture controls.

Attribute

Section

xd:binding

2.4.2.6

xd:binding_secondary

2.4.2.37.2

xd:boundProp

2.4.2.9

xd:boundPropSecondary

2.4.2.37.3

xd:CtrlId

2.4.2.10

xd:postbackModel

2.4.2.29

xd:xctname

2.4.2.35

xd:disableEditing

2.4.2.12