我有两个 XSL 变量。1.产品ID
<prdid>
<id>8143794</id>
<id>8143793</id>
<id>8142229</id>
<id>8143796</id>
</prdid>
2.产品xml
<root>
<product>
<estocklevel>0</estocklevel>
<id>8142229</id>
<isp_brand extra="isp_brand"></isp_brand>
<isp_produktserie extra="isp_produktserie"></isp_produktserie>
<isp_model extra="isp_model"></isp_model>
</product>
<product>
<estocklevel>0</estocklevel>
<id>8143793</id>
<isp_brand extra="isp_brand">Leitz</isp_brand>
<isp_produktserie extra="isp_produktserie">180</isp_produktserie>
<isp_model extra="isp_model">Bred</isp_model>
</product>
<product>
<estocklevel>0</estocklevel>
<id>8143794</id>
<isp_brand extra="isp_brand">Leitz</isp_brand>
<isp_produktserie extra="isp_produktserie">180</isp_produktserie>
<isp_model extra="isp_model">Smal</isp_model>
</product>
<product>
<id>8143796</id>
<isp_brand extra="isp_brand">Leitz</isp_brand>
<isp_produktserie extra="isp_produktserie">180</isp_produktserie>
<isp_model extra="isp_model">Smal</isp_model>
</product>
</root>
现在我想要的是,在一个 for 循环中,我想按照 prdid XML 的顺序获取 productxml 中的每个产品
<xsl:for-each select="prdid/id">
<!--i want to get a product node from productxml here which got same id of that in this for loop -->
<xsl:value-of select="productxml/id"/>
</xsl:for-each>