File: Data.xml
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:udf="http://rntsoft.com/XSLT/functions">
Customer
Order ID
Order Date
Order Total
select="translate(@OrderDate, '-', '')" data-type="number" />
select="sum(for $item in $items/Item return $item/@Quantity * $item/@ItemPrice)" />
Output:
Customer
1
Order ID
Order Date
Order Total
ord2
2006-10-30
14.5
ord1
2008-09-01
8