Hi,
I have carefully read your how-to about xd:preserve but I don't know how to apply this to my dropdownlistebox!
Part of my view.xsl:
<select class="xdComboBox xdBehavior_Select" title="" size="1" value="Präsident des Verwaltungsrates" xd:boundProp="value" xd:binding="my:Funktion" xd:xctname="DropDown" xd:CtrlId="CTRL971" tabIndex="0">
<xsl:attribute name="style"><xsl:choose><xsl:when test="my:VR-AndereFunk = string(false())">DISPLAY: none</xsl:when></xsl:choose></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="my:Funktion"/></xsl:attribute>
<xsl:choose>
<xsl:when test="function-available('xdXDocument:GetDOM')">
<option/>
<xsl:variable name="val" select="my:Funktion"/>
<xsl:if test="not(xdXDocument:GetDOM("getfonktion")/TabEigZb/EigZb[text=$val] or $val='')">
<option selected="selected">
<xsl:attribute name="value"><xsl:value-of select="$val"/></xsl:attribute>
<xsl:value-of select="$val"/>
</option>
</xsl:if>
<xsl:for-each select="xdXDocument:GetDOM("getfonktion")/TabEigZb/EigZb">
<option>
<xsl:attribute name="value"><xsl:value-of select="text"/></xsl:attribute>
<xsl:if test="$val=text">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="kurz"/>
</option>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<option>
<xsl:value-of select="my:Funktion"/>
</option>
</xsl:otherwise>
</xsl:choose>
</select>
Where I can declare my preserve code block ? I don't have any template, apply template or input?
Thanks for your help
Every moment hesitated is a moment gone for life!!! Think about it
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci