首页 > 解决方案 > 我如何才能让每个大师只提供相关细节。XSLT 2.0 分组

问题描述

我正在使用 xsl:for-each-group 和 xsl:for-eachin 来合并不同的员工以将它们映射到目的地。

请注意,源是 DB 适配器。

 <xsl:param name="getEmpAssignHistory" xml:id="id_39"/>
   <xsl:template match="/" xml:id="id_11">
      <nstrgmpr:Write xml:id="id_12">
         <nstrgdfl:request-wrapper xml:id="id_45">
            <nstrgdfl:getEmpAssignHistoryOutputCollection xml:id="id_46">
                 <xsl:for-each-group select="$getEmpAssignHistory/nsmpr1:getEmpAssignHistoryOutputCollection/nsmpr1:getEmpAssignHistoryOutput" group-by="$getEmpAssignHistory/nsmpr1:getEmpAssignHistoryOutputCollection/nsmpr1:getEmpAssignHistoryOutput/nsmpr1:EMPLOYEE_NUMBER">
                  <nstrgdfl:getEmpAssignHistoryOutput xml:id="id_49">
                     <nstrgdfl:EMPLOYEE_NUMBER xml:id="id_52">
                        <xsl:value-of xml:id="id_53" select="nsmpr2:EMPLOYEE_NUMBER"/>
                     </nstrgdfl:EMPLOYEE_NUMBER>
                     <nstrgdfl:PERSON_ID xml:id="id_50">
                        <xsl:value-of xml:id="id_51" select="nsmpr2:Person_ID"/>
                     </nstrgdfl:PERSON_ID>
                  </nstrgdfl:getEmpAssignHistoryOutput>
               </xsl:for-each-group>
            </nstrgdfl:getEmpAssignHistoryOutputCollection>
         </nstrgdfl:request-wrapper>
      </nstrgmpr:Write>
   </xsl:template>
</xsl:stylesheet>

不幸的是,我得到的数据映射到目标 1 master 包含全部细节

在此处输入图像描述


那么,我如何才能让每个大师只获得相关细节

标签: xslt-2.0osb

解决方案


推荐阅读