On Tue, 2005-11-08 at 17:29 -0500, Josh Sled wrote: > On Tue, 2005-11-08 at 14:11 -0800, Jay Scherrer wrote: > > example: <xsd:element value="$NumberOfEmployees" </element value>; > > Um, if their schema says... > <xsd:element name="NumberOfEmployees" minOccurs="0"> [...] > > then you should be generating... > <NumberOfEmployees>12345</NumberOfEmployees> > > Using XSLT, that might look like... > > <!-- XSLT header, template, leading to ... --> > <NumberOfEmployees> > <xsl:value-of select="/path/to/number/of/employees" /> > </NumberOfEmployees> > > ...jsled Thanks. Then that would makes it a lot easier (Not coming from an xsl background). Then if we were to create a class specifically to usform941 and correlate that with the schema IRS941.xsd it would look like:
struct tax { int id; int TaxYear; char TaxType; /* us Quarterly 941 */ char Currency; int ReleaseDate; int NumberOfEmployees; double TotalWages; double TotalIncomeTaxWithheld; double WagesNotSubjToSSMedicareTaxes; double TaxableSocialSecurityWages; double TaxOnSocialSecurityWages; double TaxableSocialSecurityTips; double TaxOnSocialSecurityTips; double TaxableMedicareWagesTips; double TotalTaxesBeforeAdjustmentsAmt; double FractionsOfCentsAdjustment; double TipsGroupTermLifeInsAdjAmount; double WithheldIncomeTaxAdjustment; double SpecialAdditionsFedIncmTx; double TotalAdjustmentsAmount; double AdvanceEarnedIncomeCreditPymts; double NetTaxes; double TotalDepositsOverpaymentForQtr; double BalanceDue; double Overpayment; double Amount; CreditElect; double Refund; char DepositStateCode; char SemiweeklyScheduleDepositor; /* checkBox */ char MonthlyScheduleDepositor; /* checkBox */ double Month1Liability; double Month2Liability; double Month3Liability; double TotalQuarterLiability; char FinalReturn; /* checkbox */ int DateFinalWagesPaid; char SeasonalEmployer; /* checkBox */ } us941; The calculations are easily based on total entries of a payroll class. How would we put/pull this data in/out from the appropriate gnucash account once we have it registered? There is an "acknowledgementpreliminaryguide.pdf" on the http://www.irs.gov/efile/ site. this shows A Preliminary Guide to Creating 94x Acknowledgement Files in xml using SPY. Jay Scherrer _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel