topical media & game development

talk show tell print

professional-xml-23-ExpenseReport-er.htm / htm



  <?xml version="1.0" encoding="utf-8"?>
  <!--This Document was edited using XFormation (Trial) by Focus Software Limited on Thursday, July 20, 2006 at 4:45 PM.-->
  
  <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml">
          <head>
                  <xforms:model schema="file:
C:/Documents%20and%20Settings/Kent/My%20Documents/My%20Writing/Books/ProXML/24-XForms/codeWork/ExpenseReport/expenseReport.xsd">

<xforms:instance src="file:
C:/Documents%20and%20Settings/Kent/My%20Documents/My%20Writing/Books/ProXML/24-XForms/codeWork/ExpenseReport/baseReport.xml" />

<xforms:submission method="put" includenamespaceprefixes="exp" action="file:
C:/temp/output.xml" />

<xforms:bind nodeset="exp:summary/exp:travelSummary" calculate="sum(//exp:expenseItem/exp:amount[../exp:type='Travel'])" type="xs:decimal" /> <xforms:bind nodeset="exp:summary/exp:travelSummary" type="xs:decimal" calculate="sum(//exp:expenseItem/exp:amount[../exp:type='Travel'])" /> <xforms:bind nodeset="exp:summary/exp:entSummary" type="xs:decimal" calculate="sum(//exp:expenseItem/exp:amount[../exp:type='Entertainment'])" /> <xforms:bind nodeset="exp:summary/exp:mealSummary" type="xs:decimal" calculate="sum(//exp:expenseItem/exp:amount[../exp:type='Meal'])" /> <xforms:bind nodeset="exp:summary/exp:miscSummary" type="xs:decimal" calculate="sum(//exp:expenseItem/exp:amount[../exp:type='Miscellaneous'])" /> </xforms:model> <link href="sample.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="header">Expense Report</div> <div id="content"> <xforms:input ref="exp:employee/exp:name"> <xforms:label>Name: </xforms:label> </xforms:input> </div> </div> </body> </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.