Beruflich Dokumente
Kultur Dokumente
<xsl:template name="GetParticipantCurrentStatus">
<xsl:param name="PartStatus"/>
<xsl:param name="CreateDate"/>
<xsl:param name="PartUniqueId"/>
<xsl:attribute name="ParticipantStatus">
<xsl:value-of select="string-length($PartStatus)" />
<!--xsl:for-each
select="//LH1DemographicExport/Participant/ParticipantDetails[@LH1ParticipantUniqu
eId=$PartUniqueId]/EmploymentDetails/ParticipantStatus/Status[@EffectiveDate <=
$CreateDate]"-->
<xsl:for-each select="ParticipantStatus/Status[@EffectiveDate <=
$CreateDate]">
<xsl:sort select="@EffectiveDate" data-type="text"
order="descending"/>
<xsl:if test="position() = 1" >
<xsl:value-of select="@Value"/>
</xsl:if>
</xsl:for-each>
</xsl:attribute>
</xsl:template>
=============
<xsl:variable name="CreateDate">
<xsl:choose>
<xsl:when test="../@CreatedDatetime">
<xsl:value-of
select="userCSharp:StringLeft(string(../@CreatedDatetime),10)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="userCSharp:DateCurrentDate()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
-----------
<xsl:variable name="CreateDate">
<xsl:choose>
<xsl:when test="../@CreatedDatetime">
<xsl:value-of
select="userCSharp:StringLeft(string(../@CreatedDatetime),10)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="userCSharp:DateCurrentDate()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="ParticipantStatus">
<xsl:if test="EmploymentDetails/ParticipantStatus/Status">
<xsl:for-each
select="EmploymentDetails/ParticipantStatus/Status[userCSharp:LogicalLte(@Effectiv
eDate, $CreateDate)]" >
<xsl:sort select="@EffectiveDate" data-type="text"
order="descending" />
<xsl:if test="position() = 1" >
<xsl:value-of select="@Value" />
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:attribute>