Hi,
I have a problem with a nestled "for-each". I want information from every orditem. Every orderitem have one "orderitem id" and could have several "job id". The sample belove do not work,any suggestions?
XML
<order orderid="20">
<workflows>
<workflow id="97"
<items>
<orderitem id="1">
<jobs>
<job id="150"/>
<job id="151"/>
</jobs>
</orderitem>
</items>
</workflow>
<workflow id="97">
<items>
<orderitem id="2">
<jobs>
<job id="152"/>
</jobs>
</orderitem>
</items>
</workflow>
</workflows>
</order>
XSLT
<xsl:for-each select="//items/orderitem[@id != '0']">
<xsl:value-of select="@item-number"/>
<xsl:for-each select="/order/jobs/job">
<xsl:value-of select="@id"/>
</xsl:for-each>
</xsl:for-each>
I want the output to be:
1 150 151
2 152
Kind regards / trady