OK...
Let's say I have this segment in an XML file...
And I want the HTML output to look like:
Is there a way to make XSL add values?
Or do you have to calculate everything and place it in the XML somewhere prior to translation?
I want something like...
Any suggestions???

PROGRAMMER:
Red-eyed, mumbling mammal capable of conversing with inanimate objects.
Let's say I have this segment in an XML file...
Code:
<Order>
<Number>12345</Number>
<Part>
<ID>112233</ID>
<Cost>5.00</Cost>
<QTY>5</QTY>
<Part>
<Part>
<ID>112244</ID>
<Cost>10.00</Cost>
<QTY>2</QTY>
<Part>
</Order>
And I want the HTML output to look like:
Code:
<table>
<tr>
<th>Part ID</td>
<th>QTY</td>
<th>Cost</td>
<th>Total</td>
</tr>
<tr>
<td>112233</td>
<td>5</td>
<td>5.00</td>
<td>25.00</td>
</tr>
<tr>
<td>112244</td>
<td>2</td>
<td>10.00</td>
<td>20.00</td>
</tr>
</table>
Is there a way to make XSL add values?
Or do you have to calculate everything and place it in the XML somewhere prior to translation?
I want something like...
Code:
<table>
<tr>
<th>Part ID</td>
<th>QTY</td>
<th>Cost</td>
<th>Total</td>
</tr>
<xsl:for-each select="//Order">
<tr>
<td><xsl:value-of select="ID"/></td>
<td><xsl:value-of select="QTY"/></td>
<td><xsl:value-of select="Cost"/></td>
<td><xsl:value-of select="[b]QTY * Cost[/b]"/></td>
</tr>
</xsl:for-each>
</table>
Any suggestions???

PROGRAMMER: