更新时间:2023-02-22 13:09:25
更改
`<xsl:for-each select="//UK_Products_Pipeline/LastFinishCode">`
到
`<xsl:for-each select="document('file:///D:/DATA/Marquee/dial_stats_UK.xml')/UK_Products_Pipeline/LastFinishCode">`
在要处理来自第二个输入文件的数据的模板中.
in the template where you want to process data from the second input file.
尽管更简洁的方法是为要处理的第二个文件中的节点编写具有模式的匹配模板.那么你就可以这样做:
Although a cleaner approach is to write matching templates with a mode for the nodes from the second file you want be processed. Then you just would do:
`<xsl:apply-templates select="document('file:///D:/DATA/Marquee/dial_stats_UK.xml')/UK_Products_Pipeline" mode="my-mode"/>`
您的模板将输出您想要的表格.
and your templates for that mode would output the table you want.