xslt-2.0 - 我如何才能让每个大师只提供相关细节。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 包含全部细节
那么,我如何才能让每个大师只获得相关细节
解决方案
推荐阅读
- reactjs - 反应 onClick 属性未触发
- postgresql - 如何将 Oracle 查询转换为 Postgresql 示例一些转换函数不起作用 Postgress
- java - Java Android Show with a recyclerview the strings of an array with a external layout
- c# - MSAL.NET 中的令牌缓存序列化不起作用
- visual-studio-code - 如何在声明后使 Prettier STOP DELETE “空格线”?
- javascript - 其他带有 toUpperCase()、toLowerCase() 和 Number.isInteger() 的 if 语句
- c# - Autofac 工作单元中的依赖注入
- amazon-web-services - AWS CodeBuild with Multi Docker Containers:无法准备上下文:无法评估 Dockerfile 路径中的符号链接
- node.js - 家庭助理 - 请求失败错误代码 400
- apache-kafka - 扩展消费者组的最大数量Kafka