XML Page 5 Documentation
(This file is called "XMLPage5documentation.html".)

XSLT stylesheet document
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes"/> <xsl:template match="customers"> <HTML> <A name="top"></A> <H1>Customer Orders</H1> <xsl:apply-templates select="customer[count(orders/order)>0]"/> </HTML> </xsl:template> <xsl:template match="customer"> <TABLE border="0"> <TR> <TD class="number"><B>Cust No</B></TD> <TD><xsl:apply-templates select="@cno"/></TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD><xsl:apply-templates select="name"/></TD> </TR> </TABLE> <xsl:apply-templates select="orders"/> <BR/> <A HREF="#top">Go Top</A> <BR/> <BR/> </xsl:template> <xsl:template match="orders"> <xsl:apply-templates select="order"> <xsl:sort select="orderDate" order="ascending"/> </xsl:apply-templates> </xsl:template> <xsl:template match="order"> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6"><xsl:value-of select="@no"/></TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6"> <xsl:value-of select="substring(orderDate,9,2)"/>/<xsl:value-of select="substring(orderDate,6,2)"/>/<xsl:value-of select="substring(orderDate,1,4)"/> </TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <xsl:apply-templates select="orderLine"> <xsl:sort select="description" order="ascending" /> </xsl:apply-templates> </TABLE> <BR/> </xsl:template> <xsl:template match="orderLine"> <TR> <TD width="10%"><xsl:value-of select="itemNo"/></TD> <TD width="40%"><xsl:value-of select="description"/></TD> <TD class="number" width="10%"><xsl:value-of select="format-number(quantity,'###,###.00#')"/></TD> <TD class="number" width="10%">$<xsl:value-of select="format-number(unitPrice,'###,###.00#')"/></TD> <TD class="number" width="10%">$<xsl:value-of select="format-number(quantity*unitPrice,'###,###.00#')"/></TD> <TD class="number" width="10%"><xsl:value-of select="discount"/>%</TD> <TD class="number" width="10%">$<xsl:value-of select="format-number(quantity*unitPrice*(100-discount) div 100,'###,###.00#')"/></TD> </TR> </xsl:template> <xsl:template match="*|@*"> <xsl:value-of select="."/> </xsl:template> </xsl:stylesheet>

The XML document
<?xml version="1.0"?> <?xml-stylesheet href="number5.xsl" type="text/xsl"?> <customers xsi:noNamespaceSchemaLocation="customers.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <customer cno="C111" corporate="false"> <name> <givenName>James</givenName> <familyName>Hird</familyName> </name> <address> <street>12 Raleigh Rd</street> <suburb>North Melbourne</suburb> <state>VIC</state> <postcode>3611</postcode> </address> <contacts> <home>(03) 9903-3401</home> <office>(03) 9903-3401</office> <mobile primary="true">04111222333</mobile> </contacts> </customer> <customer cno="C222" corporate="true"> <name> <companyName>Essendon Football Club</companyName> </name> <address> <street>10 Bomber Ave</street> <suburb>Windy Hill</suburb> <state>VIC</state> <postcode>3666</postcode> </address> <contacts> <name>Ray Horsburgh</name> <office primary="true">(03) 9111-9999</office> <mobile>04111222444</mobile> </contacts> <orders> <order no="O112"> <orderDate>2007-06-21</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Orange Juice</description> <quantity>100</quantity> <unitPrice>1.50</unitPrice> <discount>2</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Victoria Bitter</description> <quantity>200</quantity> <unitPrice>3</unitPrice> <discount>5</discount> </orderLine> </order> <order no="O121"> <orderDate>2006-01-20</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Coke</description> <quantity>25</quantity> <unitPrice>1.20</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Vegetarian Sandwich</description> <quantity>200</quantity> <unitPrice>2</unitPrice> <discount>5</discount> </orderLine> </order> <order no="O111"> <orderDate>2007-04-12</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Sausage Roll</description> <quantity>100</quantity> <unitPrice>1</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Meat Pies</description> <quantity>100</quantity> <unitPrice>2</unitPrice> <discount>10</discount> </orderLine> </order> </orders> </customer> <customer cno="C333" corporate="false"> <name> <givenName>Kevin</givenName> <familyName>Sheedy</familyName> </name> <address> <street>10 High St</street> <suburb>Essendon</suburb> <state>VIC</state> <postcode>3622</postcode> </address> <contacts> <home>(03) 9111-3333</home> <office>(03) 9111-9999</office> <mobile primary="true">04111222444</mobile> </contacts> <orders> <order no="O113"> <orderDate>2006-01-21</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Sausage Roll</description> <quantity>1500</quantity> <unitPrice>1</unitPrice> <discount>20</discount> </orderLine> </order> <order no="O114"> <orderDate>2007-07-10</orderDate> <orderLine> <itemNo>I002</itemNo> <description>Meat Pies</description> <quantity>2000</quantity> <unitPrice>2</unitPrice> <discount>20</discount> </orderLine> <orderLine> <itemNo>I003</itemNo> <description>Orange Juice</description> <quantity>1000</quantity> <unitPrice>1.50</unitPrice> <discount>5</discount> </orderLine> </order> <order no="O122"> <orderDate>2007-01-01</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Red Wine</description> <quantity>1500</quantity> <unitPrice>15</unitPrice> <discount>20</discount> </orderLine> </order> <order no="O115"> <orderDate>2007-07-11</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Victoria Bitter</description> <quantity>2000</quantity> <unitPrice>3</unitPrice> <discount>10</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Red Wine</description> <quantity>200</quantity> <unitPrice>15</unitPrice> <discount>2</discount> </orderLine> <orderLine> <itemNo>I003</itemNo> <description>Tomato and Ham Sandwich</description> <quantity>500</quantity> <unitPrice>2</unitPrice> <discount>5</discount> </orderLine> <orderLine> <itemNo>I004</itemNo> <description>Vegetarian Sandwich</description> <quantity>200</quantity> <unitPrice>2</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I005</itemNo> <description>Salmon Sandwich</description> <quantity>500</quantity> <unitPrice>3</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I006</itemNo> <description>Springroll</description> <quantity>1000</quantity> <unitPrice>0.5</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I007</itemNo> <description>White Wine</description> <quantity>500</quantity> <unitPrice>12</unitPrice> <discount>5</discount> </orderLine> </order> </orders> </customer> <customer cno="C444" corporate="false"> <name> <givenName>John</givenName> <familyName>Worsfold</familyName> </name> <address> <street>23 Bayview Ave</street> <suburb>South Perth</suburb> <state>WA</state> <postcode>6200</postcode> </address> <contacts> <home>(06) 6222-3333</home> <office>(06) 6222-9999</office> <mobile primary="true">04111222555</mobile> </contacts> <orders> <order no="O116"> <orderDate>2007-12-12</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Orange Juice</description> <quantity>30</quantity> <unitPrice>1.50</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Red Wine</description> <quantity>5</quantity> <unitPrice>15</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I003</itemNo> <description>Tomato and Ham Sandwich</description> <quantity>30</quantity> <unitPrice>2</unitPrice> <discount>0</discount> </orderLine> </order> <order no="O117"> <orderDate>2007-06-16</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Tomato and Ham Sandwich</description> <quantity>30</quantity> <unitPrice>2</unitPrice> <discount>0</discount> </orderLine> </order> <order no="O123"> <orderDate>2007-06-17</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Tomato and Ham Sandwich</description> <quantity>30</quantity> <unitPrice>2</unitPrice> <discount>0</discount> </orderLine> </order> </orders> </customer> <customer cno="C555" corporate="false"> <name> <givenName>Ben</givenName> <familyName>Cousins</familyName> </name> <address> <street>23 Long Ave</street> <suburb>West Perth</suburb> <state>WA</state> <postcode>6500</postcode> </address> <contacts> <home>(06) 6222-4444</home> <office>(06) 6222-9999</office> <mobile primary="true">04111222666</mobile> </contacts> <orders> <order no="O120"> <orderDate>2007-05-05</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Sausage Roll</description> <quantity>15</quantity> <unitPrice>1</unitPrice> <discount>0</discount> </orderLine> </order> </orders> </customer> <customer cno="C666" corporate="true"> <name> <companyName>West Coast Football Club</companyName> </name> <address> <street>1 Eagle Dr</street> <suburb>Subiaco</suburb> <state>WA</state> <postcode>6666</postcode> </address> <contacts> <name>Dalton Gooding</name> <office primary="true">(06) 6222-9999</office> <mobile>04111222555</mobile> </contacts> <orders> <order no="O118"> <orderDate>2007-04-12</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Orange Juice</description> <quantity>1000</quantity> <unitPrice>1.50</unitPrice> <discount>5</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Tomato and Ham Sandwich</description> <quantity>500</quantity> <unitPrice>2</unitPrice> <discount>5</discount> </orderLine> <orderLine> <itemNo>I003</itemNo> <description>Vegetarian Sandwich</description> <quantity>200</quantity> <unitPrice>2</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I004</itemNo> <description>Salmon Sandwich</description> <quantity>500</quantity> <unitPrice>3</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I005</itemNo> <description>Springroll</description> <quantity>1000</quantity> <unitPrice>0.5</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I006</itemNo> <description>Rice Paper Roll</description> <quantity>1000</quantity> <unitPrice>1.5</unitPrice> <discount>2</discount> </orderLine> <orderLine> <itemNo>I007</itemNo> <description>BBQ Chicken Wing</description> <quantity>1500</quantity> <unitPrice>0.75</unitPrice> <discount>2</discount> </orderLine> </order> <order no="O119"> <orderDate>2007-07-01</orderDate> <orderLine> <itemNo>I001</itemNo> <description>Coke</description> <quantity>500</quantity> <unitPrice>1.2</unitPrice> <discount>0</discount> </orderLine> <orderLine> <itemNo>I002</itemNo> <description>Lemonade</description> <quantity>500</quantity> <unitPrice>1.5</unitPrice> <discount>0</discount> </orderLine> </order> </orders> </customer> </customers>

The HTML document
<HTML> <A name="top"></A> <H1>Customer Orders</H1> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Cust No</B></TD> <TD>C222</TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD> Essendon Football Club </TD> </TR> </TABLE> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O121</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">20/01/2006</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Coke</TD> <TD class="number" width="10%">25.00</TD> <TD class="number" width="10%">$1.20</TD> <TD class="number" width="10%">$30.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$30.00</TD> </TR> <TR> <TD width="10%">I002</TD> <TD width="40%">Vegetarian Sandwich</TD> <TD class="number" width="10%">200.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$400.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$380.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O111</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">12/04/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I002</TD> <TD width="40%">Meat Pies</TD> <TD class="number" width="10%">100.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$200.00</TD> <TD class="number" width="10%">10%</TD> <TD class="number" width="10%">$180.00</TD> </TR> <TR> <TD width="10%">I001</TD> <TD width="40%">Sausage Roll</TD> <TD class="number" width="10%">100.00</TD> <TD class="number" width="10%">$1.00</TD> <TD class="number" width="10%">$100.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$100.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O112</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">21/06/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Orange Juice</TD> <TD class="number" width="10%">100.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$150.00</TD> <TD class="number" width="10%">2%</TD> <TD class="number" width="10%">$147.00</TD> </TR> <TR> <TD width="10%">I002</TD> <TD width="40%">Victoria Bitter</TD> <TD class="number" width="10%">200.00</TD> <TD class="number" width="10%">$3.00</TD> <TD class="number" width="10%">$600.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$570.00</TD> </TR> </TABLE> <BR> <BR> <A HREF="#top">Go Top</A><BR> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Cust No</B></TD> <TD>C333</TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD> Kevin Sheedy </TD> </TR> </TABLE> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O113</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">21/01/2006</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Sausage Roll</TD> <TD class="number" width="10%">1,500.00</TD> <TD class="number" width="10%">$1.00</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">20%</TD> <TD class="number" width="10%">$1,200.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O122</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">01/01/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Red Wine</TD> <TD class="number" width="10%">1,500.00</TD> <TD class="number" width="10%">$15.00</TD> <TD class="number" width="10%">$22,500.00</TD> <TD class="number" width="10%">20%</TD> <TD class="number" width="10%">$18,000.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O114</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">10/07/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I002</TD> <TD width="40%">Meat Pies</TD> <TD class="number" width="10%">2,000.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$4,000.00</TD> <TD class="number" width="10%">20%</TD> <TD class="number" width="10%">$3,200.00</TD> </TR> <TR> <TD width="10%">I003</TD> <TD width="40%">Orange Juice</TD> <TD class="number" width="10%">1,000.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$1,425.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O115</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">11/07/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I002</TD> <TD width="40%">Red Wine</TD> <TD class="number" width="10%">200.00</TD> <TD class="number" width="10%">$15.00</TD> <TD class="number" width="10%">$3,000.00</TD> <TD class="number" width="10%">2%</TD> <TD class="number" width="10%">$2,940.00</TD> </TR> <TR> <TD width="10%">I005</TD> <TD width="40%">Salmon Sandwich</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$3.00</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$1,500.00</TD> </TR> <TR> <TD width="10%">I006</TD> <TD width="40%">Springroll</TD> <TD class="number" width="10%">1,000.00</TD> <TD class="number" width="10%">$.50</TD> <TD class="number" width="10%">$500.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$500.00</TD> </TR> <TR> <TD width="10%">I003</TD> <TD width="40%">Tomato and Ham Sandwich</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$1,000.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$950.00</TD> </TR> <TR> <TD width="10%">I004</TD> <TD width="40%">Vegetarian Sandwich</TD> <TD class="number" width="10%">200.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$400.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$400.00</TD> </TR> <TR> <TD width="10%">I001</TD> <TD width="40%">Victoria Bitter</TD> <TD class="number" width="10%">2,000.00</TD> <TD class="number" width="10%">$3.00</TD> <TD class="number" width="10%">$6,000.00</TD> <TD class="number" width="10%">10%</TD> <TD class="number" width="10%">$5,400.00</TD> </TR> <TR> <TD width="10%">I007</TD> <TD width="40%">White Wine</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$12.00</TD> <TD class="number" width="10%">$6,000.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$5,700.00</TD> </TR> </TABLE> <BR> <BR> <A HREF="#top">Go Top</A><BR> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Cust No</B></TD> <TD>C444</TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD> John Worsfold </TD> </TR> </TABLE> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O117</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">16/06/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Tomato and Ham Sandwich</TD> <TD class="number" width="10%">30.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$60.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$60.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O123</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">17/06/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Tomato and Ham Sandwich</TD> <TD class="number" width="10%">30.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$60.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$60.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O116</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">12/12/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Orange Juice</TD> <TD class="number" width="10%">30.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$45.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$45.00</TD> </TR> <TR> <TD width="10%">I002</TD> <TD width="40%">Red Wine</TD> <TD class="number" width="10%">5.00</TD> <TD class="number" width="10%">$15.00</TD> <TD class="number" width="10%">$75.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$75.00</TD> </TR> <TR> <TD width="10%">I003</TD> <TD width="40%">Tomato and Ham Sandwich</TD> <TD class="number" width="10%">30.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$60.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$60.00</TD> </TR> </TABLE> <BR> <BR> <A HREF="#top">Go Top</A><BR> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Cust No</B></TD> <TD>C555</TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD> Ben Cousins </TD> </TR> </TABLE> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O120</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">05/05/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Sausage Roll</TD> <TD class="number" width="10%">15.00</TD> <TD class="number" width="10%">$1.00</TD> <TD class="number" width="10%">$15.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$15.00</TD> </TR> </TABLE> <BR> <BR> <A HREF="#top">Go Top</A><BR> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Cust No</B></TD> <TD>C666</TD> </TR> <TR> <TD class="number"><B>Name</B></TD> <TD> West Coast Football Club </TD> </TR> </TABLE> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O118</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">12/04/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I007</TD> <TD width="40%">BBQ Chicken Wing</TD> <TD class="number" width="10%">1,500.00</TD> <TD class="number" width="10%">$.75</TD> <TD class="number" width="10%">$1,125.00</TD> <TD class="number" width="10%">2%</TD> <TD class="number" width="10%">$1,102.50</TD> </TR> <TR> <TD width="10%">I001</TD> <TD width="40%">Orange Juice</TD> <TD class="number" width="10%">1,000.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$1,425.00</TD> </TR> <TR> <TD width="10%">I006</TD> <TD width="40%">Rice Paper Roll</TD> <TD class="number" width="10%">1,000.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">2%</TD> <TD class="number" width="10%">$1,470.00</TD> </TR> <TR> <TD width="10%">I004</TD> <TD width="40%">Salmon Sandwich</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$3.00</TD> <TD class="number" width="10%">$1,500.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$1,500.00</TD> </TR> <TR> <TD width="10%">I005</TD> <TD width="40%">Springroll</TD> <TD class="number" width="10%">1,000.00</TD> <TD class="number" width="10%">$.50</TD> <TD class="number" width="10%">$500.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$500.00</TD> </TR> <TR> <TD width="10%">I002</TD> <TD width="40%">Tomato and Ham Sandwich</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$1,000.00</TD> <TD class="number" width="10%">5%</TD> <TD class="number" width="10%">$950.00</TD> </TR> <TR> <TD width="10%">I003</TD> <TD width="40%">Vegetarian Sandwich</TD> <TD class="number" width="10%">200.00</TD> <TD class="number" width="10%">$2.00</TD> <TD class="number" width="10%">$400.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$400.00</TD> </TR> </TABLE> <BR> <TABLE border="1" cellspacing="1" cellpadding="5"> <TR> <TD class="number"><B>Order No</B></TD> <TD colspan="6">O119</TD> </TR> <TR> <TD class="number"><B>Order Date</B></TD> <TD colspan="6">01/07/2007</TD> </TR> <TH>Item No</TH> <TH>Description</TH> <TH>Qty</TH> <TH>Unit Price</TH> <TH>Original Total</TH> <TH>Discount</TH> <TH>Discount Total</TH> <TR> <TD width="10%">I001</TD> <TD width="40%">Coke</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$1.20</TD> <TD class="number" width="10%">$600.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$600.00</TD> </TR> <TR> <TD width="10%">I002</TD> <TD width="40%">Lemonade</TD> <TD class="number" width="10%">500.00</TD> <TD class="number" width="10%">$1.50</TD> <TD class="number" width="10%">$750.00</TD> <TD class="number" width="10%">0%</TD> <TD class="number" width="10%">$750.00</TD> </TR> </TABLE> <BR> <BR> <A HREF="#top">Go Top</A><BR> <BR> </HTML>
XMLfile.jpg 200x30

XSLTfile.jpg 200x30