first off hello
Ok my question, i am trying to develope a open source shopping cart, which uses xml for storage and xsl to style the basket
1, my xml
<items>
<item>
<item-name>vlaue</item-name>
<item-number>vlaue</item-number>
<quantity>vlaue<quantity>
<option>
<on0>vlaue</on0>
<os0>vlaue</os0>
<on1>vlaue</on1>
<os1>vlaue</os1>
</option>
</item>
</items>
This xml would be created for an item with 2 options Since paypal allows a max of 7 options theat is going to be my upper figer ok my xsl
<xsl:for-each select="item">
<input type='hidden' name="item_name_{position()}" value="{item-name}"/>
<input type='hidden' name="item_number_{position()}" value="{item-description}"/>
<input type='hidden' name="amount_{position()}" value="{unit-price}"/>
<input type='hidden' name="quantity_{position()}" value="{@quantity}"/>
<xsl:for-each select="option">
<input type='hidden' name="on{position()}_(i need this to be item postion)" value="(i need this to be "on" with the option postion appened ie "on0")"/>
<input type='hidden' name="os{position()}_{i need this to be item postion}" value="(i need this to be "os" with the option postion appened ie "os0")"/>
</xsl:for-each>
</xsl:for-each>
So really i am asking can i have the value of postion from the outer for each passed to the inner for each
if any one can help it would be graet
Thank you in advance
Tim Dodgson