lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master c27dafa 2/2: Establish new versions of input


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c27dafa 2/2: Establish new versions of input classes
Date: Thu, 28 Jun 2018 16:58:49 -0400 (EDT)

branch: master
commit c27dafada01a157af02483f454398c434aefde26
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Establish new versions of input classes
    
    Tied *cell_document_02.{rnc,xsd} to {cell_08,types_08}.{rnc,xsd} for
    backward compatibility.
    
    Different external systems will update their extracts at different
    times. Today, these are used for current extracts:
      *cell_document_01 + cell_07 + types_07
      *cell_document_02 + cell_08 + types_08
    and other combinations for historical files. Adhering to the former
    practice of incrementing versions separately would mean that this:
      *cell_document_02 + cell_08 + types_09
    would be needed now for a planned new product that needs a change in
    a particular enumerative type, or more likely this:
      *cell_document_02 + cell_09 + types_09
    because of some (optional) cleanup, yet this:
      *cell_document_02 + cell_08 + types_08
    is still needed until all external systems catch up. However, schema X
    is selected according to the version attribute of *cell_document_X,
    and schema X hardcodes the (single, specific) version of cell_Y and
    types_Z that it uses, so this naming scheme is insufficiently flexible.
    Henceforth, to prevent that problem, all versions will be the same.
    Accordingly, increased all class versions to nine: in particular,
    the *cell_document classes jumped from version two to version nine.
---
 cell.rnc                      |  2 +-
 cell.xsd                      |  2 +-
 cell_08.rnc                   |  2 +-
 cell_08.xsd                   |  2 +-
 input_xml_io.cpp              |  3 +-
 multiple_cell_document.cpp    |  4 ++-
 multiple_cell_document.rnc    |  2 +-
 multiple_cell_document.xsd    |  2 +-
 multiple_cell_document_02.rnc |  2 +-
 multiple_cell_document_02.xsd |  2 +-
 sample.cns                    | 80 +++++++++++++++++++++----------------------
 sample.ill                    | 28 +++++++--------
 single_cell_document.cpp      |  4 ++-
 single_cell_document.rnc      |  2 +-
 single_cell_document.xsd      |  2 +-
 single_cell_document_02.rnc   |  2 +-
 single_cell_document_02.xsd   |  2 +-
 17 files changed, 74 insertions(+), 69 deletions(-)

diff --git a/cell.rnc b/cell.rnc
index 85bddcd..b547755 100644
--- a/cell.rnc
+++ b/cell.rnc
@@ -26,7 +26,7 @@
 # elements marked with an asterisk.
 
 cell_element = element cell
-    {attribute version {"8"}
+    {attribute version {"9"}
 
     ,## Accidental death benefit: elected or not.
      element AccidentalDeathBenefit           {yes_or_no}
diff --git a/cell.xsd b/cell.xsd
index 6264e3d..b00efb6 100644
--- a/cell.xsd
+++ b/cell.xsd
@@ -260,7 +260,7 @@
       <xs:attribute name="version" use="required">
         <xs:simpleType>
           <xs:restriction base="xs:token">
-            <xs:enumeration value="8"/>
+            <xs:enumeration value="9"/>
           </xs:restriction>
         </xs:simpleType>
       </xs:attribute>
diff --git a/cell_08.rnc b/cell_08.rnc
index 85bddcd..1fe1a39 100644
--- a/cell_08.rnc
+++ b/cell_08.rnc
@@ -550,5 +550,5 @@ cell_element = element cell
      element ZipCode                          {text}
     }
 
-include "types.rnc"
+include "types_08.rnc"
 
diff --git a/cell_08.xsd b/cell_08.xsd
index 6264e3d..3f49154 100644
--- a/cell_08.xsd
+++ b/cell_08.xsd
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
-  <xs:include schemaLocation="types.xsd"/>
+  <xs:include schemaLocation="types_08.xsd"/>
   <!--
     RELAX NG schema for a single cell (class Input).
 
diff --git a/input_xml_io.cpp b/input_xml_io.cpp
index 8cbaf16..f37fbf2 100644
--- a/input_xml_io.cpp
+++ b/input_xml_io.cpp
@@ -73,6 +73,7 @@ std::string full_name
 /// version 6: 20100719T1349Z
 /// version 7: 20120808T2130Z
 /// version 8: 20150316T0422Z
+/// version 9: 20180628T1936Z
 ///
 /// Important note concerning version 3. On or about 20090311, some
 /// end users were given an off-cycle release that should have used
@@ -81,7 +82,7 @@ std::string full_name
 
 int Input::class_version() const
 {
-    return 8;
+    return 9;
 }
 
 std::string const& Input::xml_root_name() const
diff --git a/multiple_cell_document.cpp b/multiple_cell_document.cpp
index e0e2e68..b561134 100644
--- a/multiple_cell_document.cpp
+++ b/multiple_cell_document.cpp
@@ -88,10 +88,12 @@ void multiple_cell_document::assert_vector_sizes_are_sane() 
const
 /// version 0: [prior to the lmi epoch]
 /// version 1: 20120220T0158Z
 /// version 2: 20150316T0409Z
+///   [versions 3-8 never existed]
+/// version 9: 20180628T1936Z
 
 int multiple_cell_document::class_version() const
 {
-    return 2;
+    return 9;
 }
 
 /// Name of xml root element.
diff --git a/multiple_cell_document.rnc b/multiple_cell_document.rnc
index a6d54c1..3e297f2 100644
--- a/multiple_cell_document.rnc
+++ b/multiple_cell_document.rnc
@@ -30,7 +30,7 @@
 # all contracts in the group.
 
 start = element multiple_cell_document
-    {attribute version {"2"}
+    {attribute version {"9"}
     ,attribute data_source {xsd:nonNegativeInteger}
 
     ,element case_default     {cell_element  }
diff --git a/multiple_cell_document.xsd b/multiple_cell_document.xsd
index 455bdfa..8aa5df5 100644
--- a/multiple_cell_document.xsd
+++ b/multiple_cell_document.xsd
@@ -43,7 +43,7 @@
       <xs:attribute name="version" use="required">
         <xs:simpleType>
           <xs:restriction base="xs:token">
-            <xs:enumeration value="2"/>
+            <xs:enumeration value="9"/>
           </xs:restriction>
         </xs:simpleType>
       </xs:attribute>
diff --git a/multiple_cell_document_02.rnc b/multiple_cell_document_02.rnc
index a6d54c1..48bffd0 100644
--- a/multiple_cell_document_02.rnc
+++ b/multiple_cell_document_02.rnc
@@ -38,5 +38,5 @@ start = element multiple_cell_document
     ,element particular_cells {cell_element +}
     }
 
-include "cell.rnc"
+include "cell_08.rnc"
 
diff --git a/multiple_cell_document_02.xsd b/multiple_cell_document_02.xsd
index 455bdfa..e247420 100644
--- a/multiple_cell_document_02.xsd
+++ b/multiple_cell_document_02.xsd
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
-  <xs:include schemaLocation="cell.xsd"/>
+  <xs:include schemaLocation="cell_08.xsd"/>
   <!--
     RELAX NG schema for '.cns' files (class multiple_cell_document).
 
diff --git a/sample.cns b/sample.cns
index d0d2d58..eb571bd 100644
--- a/sample.cns
+++ b/sample.cns
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
-<multiple_cell_document version="2" data_source="1">
+<multiple_cell_document version="9" data_source="1">
   <case_default>
-    <cell version="8">
+    <cell version="9">
       <AccidentalDeathBenefit>No</AccidentalDeathBenefit>
       <Address/>
       <AgentAddress>*** REQUIRED FIELD MISSING ***</AgentAddress>
@@ -28,18 +28,18 @@
       <CorporationPaymentMode>annual</CorporationPaymentMode>
       <CorporationPremiumTableFactor>1</CorporationPremiumTableFactor>
       <CorporationState>CT</CorporationState>
-      <CorporationTaxBracket>0</CorporationTaxBracket>
+      <CorporationTaxBracket/>
       <CorporationZipCode/>
       <Country>US</Country>
       <CountryCoiMultiplier>1</CountryCoiMultiplier>
       <CreateSupplementalReport>No</CreateSupplementalReport>
       <CurrentCoiMultiplier>1</CurrentCoiMultiplier>
-      <DateOfBirth>2437604</DateOfBirth>
+      <DateOfBirth>2441862</DateOfBirth>
       <DeathBenefitOption>a</DeathBenefitOption>
       <DefinitionOfLifeInsurance>CVAT</DefinitionOfLifeInsurance>
-      <DefinitionOfMaterialChange>Earlier of increase or unnecessary 
premium</DefinitionOfMaterialChange>
+      <DefinitionOfMaterialChange>Unnecessary 
premium</DefinitionOfMaterialChange>
       <Dumpin>0</Dumpin>
-      <EffectiveDate>2454040</EffectiveDate>
+      <EffectiveDate>2458298</EffectiveDate>
       <EffectiveDateToday>No</EffectiveDateToday>
       <EmployeeClass/>
       <ExperienceRatingInitialKFactor>1</ExperienceRatingInitialKFactor>
@@ -51,7 +51,7 @@
       <ExtraCompensationOnPremium>0</ExtraCompensationOnPremium>
       <ExtraMonthlyCustodialFee>0</ExtraMonthlyCustodialFee>
       <FlatExtra>0</FlatExtra>
-      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 </FundAllocations>
+      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0</FundAllocations>
       <FundChoiceType>Choose funds</FundChoiceType>
       <Gender>Male</Gender>
       <GeneralAccountRate>0.06</GeneralAccountRate>
@@ -63,7 +63,7 @@
       <IndividualPaymentStrategy>PmtInputScalar</IndividualPaymentStrategy>
       <Inforce7702AAmountsPaidHistory>0</Inforce7702AAmountsPaidHistory>
       <InforceAnnualTargetPremium>0</InforceAnnualTargetPremium>
-      <InforceAsOfDate>2454040</InforceAsOfDate>
+      <InforceAsOfDate>2458298</InforceAsOfDate>
       <InforceAvBeforeLastMc>0</InforceAvBeforeLastMc>
       <InforceContractMonth>0</InforceContractMonth>
       <InforceContractYear>0</InforceContractYear>
@@ -105,8 +105,8 @@
       <Internal1035ExchangeFromMec>No</Internal1035ExchangeFromMec>
       <Internal1035ExchangeTaxBasis>0</Internal1035ExchangeTaxBasis>
       <IssueAge>45</IssueAge>
-      <LastCoiReentryDate>2454040</LastCoiReentryDate>
-      <LastMaterialChangeDate>2454040</LastMaterialChangeDate>
+      <LastCoiReentryDate>2458298</LastCoiReentryDate>
+      <LastMaterialChangeDate>2458298</LastMaterialChangeDate>
       <ListBillDate>2440588</ListBillDate>
       <LoanRate>0.06</LoanRate>
       <LoanRateType>Fixed loan rate</LoanRateType>
@@ -132,7 +132,7 @@
       <SalarySpecifiedAmountCap>100000</SalarySpecifiedAmountCap>
       <SalarySpecifiedAmountFactor>1</SalarySpecifiedAmountFactor>
       <SalarySpecifiedAmountOffset>50000</SalarySpecifiedAmountOffset>
-      <SeparateAccountRate>.08</SeparateAccountRate>
+      <SeparateAccountRate>0.08</SeparateAccountRate>
       <SeparateAccountRateType>Gross rate</SeparateAccountRateType>
       <Smoking>Nonsmoker</Smoking>
       <SolveBeginTime>45</SolveBeginTime>
@@ -178,8 +178,8 @@
       <SupplementalSpecifiedAmount>0</SupplementalSpecifiedAmount>
       <SurviveToAge>99</SurviveToAge>
       <SurviveToType>Survive to age limit</SurviveToType>
-      <SurviveToYear>99</SurviveToYear>
-      <TaxBracket>0</TaxBracket>
+      <SurviveToYear>100</SurviveToYear>
+      <TaxBracket/>
       <TermAdjustmentMethod>Adjust base first</TermAdjustmentMethod>
       <TermRider>No</TermRider>
       <TermRiderAmount>0</TermRiderAmount>
@@ -188,7 +188,7 @@
       <TotalSpecifiedAmount>1000000</TotalSpecifiedAmount>
       <UnderwritingClass>Standard</UnderwritingClass>
       <UseAverageOfAllFunds>No</UseAverageOfAllFunds>
-      <UseCurrentDeclaredRate>No</UseCurrentDeclaredRate>
+      <UseCurrentDeclaredRate>Yes</UseCurrentDeclaredRate>
       <UseDOB>No</UseDOB>
       <UseExperienceRating>No</UseExperienceRating>
       <UsePartialMortality>No</UsePartialMortality>
@@ -199,7 +199,7 @@
     </cell>
   </case_default>
   <class_defaults>
-    <cell version="8">
+    <cell version="9">
       <AccidentalDeathBenefit>No</AccidentalDeathBenefit>
       <Address/>
       <AgentAddress>*** REQUIRED FIELD MISSING ***</AgentAddress>
@@ -226,18 +226,18 @@
       <CorporationPaymentMode>annual</CorporationPaymentMode>
       <CorporationPremiumTableFactor>1</CorporationPremiumTableFactor>
       <CorporationState>CT</CorporationState>
-      <CorporationTaxBracket>0</CorporationTaxBracket>
+      <CorporationTaxBracket/>
       <CorporationZipCode/>
       <Country>US</Country>
       <CountryCoiMultiplier>1</CountryCoiMultiplier>
       <CreateSupplementalReport>No</CreateSupplementalReport>
       <CurrentCoiMultiplier>1</CurrentCoiMultiplier>
-      <DateOfBirth>2437604</DateOfBirth>
+      <DateOfBirth>2441862</DateOfBirth>
       <DeathBenefitOption>a</DeathBenefitOption>
       <DefinitionOfLifeInsurance>CVAT</DefinitionOfLifeInsurance>
-      <DefinitionOfMaterialChange>Earlier of increase or unnecessary 
premium</DefinitionOfMaterialChange>
+      <DefinitionOfMaterialChange>Unnecessary 
premium</DefinitionOfMaterialChange>
       <Dumpin>0</Dumpin>
-      <EffectiveDate>2454040</EffectiveDate>
+      <EffectiveDate>2458298</EffectiveDate>
       <EffectiveDateToday>No</EffectiveDateToday>
       <EmployeeClass/>
       <ExperienceRatingInitialKFactor>1</ExperienceRatingInitialKFactor>
@@ -249,7 +249,7 @@
       <ExtraCompensationOnPremium>0</ExtraCompensationOnPremium>
       <ExtraMonthlyCustodialFee>0</ExtraMonthlyCustodialFee>
       <FlatExtra>0</FlatExtra>
-      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 </FundAllocations>
+      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0</FundAllocations>
       <FundChoiceType>Choose funds</FundChoiceType>
       <Gender>Male</Gender>
       <GeneralAccountRate>0.06</GeneralAccountRate>
@@ -261,7 +261,7 @@
       <IndividualPaymentStrategy>PmtInputScalar</IndividualPaymentStrategy>
       <Inforce7702AAmountsPaidHistory>0</Inforce7702AAmountsPaidHistory>
       <InforceAnnualTargetPremium>0</InforceAnnualTargetPremium>
-      <InforceAsOfDate>2454040</InforceAsOfDate>
+      <InforceAsOfDate>2458298</InforceAsOfDate>
       <InforceAvBeforeLastMc>0</InforceAvBeforeLastMc>
       <InforceContractMonth>0</InforceContractMonth>
       <InforceContractYear>0</InforceContractYear>
@@ -303,8 +303,8 @@
       <Internal1035ExchangeFromMec>No</Internal1035ExchangeFromMec>
       <Internal1035ExchangeTaxBasis>0</Internal1035ExchangeTaxBasis>
       <IssueAge>45</IssueAge>
-      <LastCoiReentryDate>2454040</LastCoiReentryDate>
-      <LastMaterialChangeDate>2454040</LastMaterialChangeDate>
+      <LastCoiReentryDate>2458298</LastCoiReentryDate>
+      <LastMaterialChangeDate>2458298</LastMaterialChangeDate>
       <ListBillDate>2440588</ListBillDate>
       <LoanRate>0.06</LoanRate>
       <LoanRateType>Fixed loan rate</LoanRateType>
@@ -330,7 +330,7 @@
       <SalarySpecifiedAmountCap>100000</SalarySpecifiedAmountCap>
       <SalarySpecifiedAmountFactor>1</SalarySpecifiedAmountFactor>
       <SalarySpecifiedAmountOffset>50000</SalarySpecifiedAmountOffset>
-      <SeparateAccountRate>.08</SeparateAccountRate>
+      <SeparateAccountRate>0.08</SeparateAccountRate>
       <SeparateAccountRateType>Gross rate</SeparateAccountRateType>
       <Smoking>Nonsmoker</Smoking>
       <SolveBeginTime>45</SolveBeginTime>
@@ -376,8 +376,8 @@
       <SupplementalSpecifiedAmount>0</SupplementalSpecifiedAmount>
       <SurviveToAge>99</SurviveToAge>
       <SurviveToType>Survive to age limit</SurviveToType>
-      <SurviveToYear>99</SurviveToYear>
-      <TaxBracket>0</TaxBracket>
+      <SurviveToYear>100</SurviveToYear>
+      <TaxBracket/>
       <TermAdjustmentMethod>Adjust base first</TermAdjustmentMethod>
       <TermRider>No</TermRider>
       <TermRiderAmount>0</TermRiderAmount>
@@ -386,7 +386,7 @@
       <TotalSpecifiedAmount>1000000</TotalSpecifiedAmount>
       <UnderwritingClass>Standard</UnderwritingClass>
       <UseAverageOfAllFunds>No</UseAverageOfAllFunds>
-      <UseCurrentDeclaredRate>No</UseCurrentDeclaredRate>
+      <UseCurrentDeclaredRate>Yes</UseCurrentDeclaredRate>
       <UseDOB>No</UseDOB>
       <UseExperienceRating>No</UseExperienceRating>
       <UsePartialMortality>No</UsePartialMortality>
@@ -397,7 +397,7 @@
     </cell>
   </class_defaults>
   <particular_cells>
-    <cell version="8">
+    <cell version="9">
       <AccidentalDeathBenefit>No</AccidentalDeathBenefit>
       <Address/>
       <AgentAddress>*** REQUIRED FIELD MISSING ***</AgentAddress>
@@ -424,18 +424,18 @@
       <CorporationPaymentMode>annual</CorporationPaymentMode>
       <CorporationPremiumTableFactor>1</CorporationPremiumTableFactor>
       <CorporationState>CT</CorporationState>
-      <CorporationTaxBracket>0</CorporationTaxBracket>
+      <CorporationTaxBracket/>
       <CorporationZipCode/>
       <Country>US</Country>
       <CountryCoiMultiplier>1</CountryCoiMultiplier>
       <CreateSupplementalReport>No</CreateSupplementalReport>
       <CurrentCoiMultiplier>1</CurrentCoiMultiplier>
-      <DateOfBirth>2437604</DateOfBirth>
+      <DateOfBirth>2441862</DateOfBirth>
       <DeathBenefitOption>a</DeathBenefitOption>
       <DefinitionOfLifeInsurance>CVAT</DefinitionOfLifeInsurance>
-      <DefinitionOfMaterialChange>Earlier of increase or unnecessary 
premium</DefinitionOfMaterialChange>
+      <DefinitionOfMaterialChange>Unnecessary 
premium</DefinitionOfMaterialChange>
       <Dumpin>0</Dumpin>
-      <EffectiveDate>2454040</EffectiveDate>
+      <EffectiveDate>2458298</EffectiveDate>
       <EffectiveDateToday>No</EffectiveDateToday>
       <EmployeeClass/>
       <ExperienceRatingInitialKFactor>1</ExperienceRatingInitialKFactor>
@@ -447,7 +447,7 @@
       <ExtraCompensationOnPremium>0</ExtraCompensationOnPremium>
       <ExtraMonthlyCustodialFee>0</ExtraMonthlyCustodialFee>
       <FlatExtra>0</FlatExtra>
-      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 </FundAllocations>
+      <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0</FundAllocations>
       <FundChoiceType>Choose funds</FundChoiceType>
       <Gender>Male</Gender>
       <GeneralAccountRate>0.06</GeneralAccountRate>
@@ -459,7 +459,7 @@
       <IndividualPaymentStrategy>PmtInputScalar</IndividualPaymentStrategy>
       <Inforce7702AAmountsPaidHistory>0</Inforce7702AAmountsPaidHistory>
       <InforceAnnualTargetPremium>0</InforceAnnualTargetPremium>
-      <InforceAsOfDate>2454040</InforceAsOfDate>
+      <InforceAsOfDate>2458298</InforceAsOfDate>
       <InforceAvBeforeLastMc>0</InforceAvBeforeLastMc>
       <InforceContractMonth>0</InforceContractMonth>
       <InforceContractYear>0</InforceContractYear>
@@ -501,8 +501,8 @@
       <Internal1035ExchangeFromMec>No</Internal1035ExchangeFromMec>
       <Internal1035ExchangeTaxBasis>0</Internal1035ExchangeTaxBasis>
       <IssueAge>45</IssueAge>
-      <LastCoiReentryDate>2454040</LastCoiReentryDate>
-      <LastMaterialChangeDate>2454040</LastMaterialChangeDate>
+      <LastCoiReentryDate>2458298</LastCoiReentryDate>
+      <LastMaterialChangeDate>2458298</LastMaterialChangeDate>
       <ListBillDate>2440588</ListBillDate>
       <LoanRate>0.06</LoanRate>
       <LoanRateType>Fixed loan rate</LoanRateType>
@@ -528,7 +528,7 @@
       <SalarySpecifiedAmountCap>100000</SalarySpecifiedAmountCap>
       <SalarySpecifiedAmountFactor>1</SalarySpecifiedAmountFactor>
       <SalarySpecifiedAmountOffset>50000</SalarySpecifiedAmountOffset>
-      <SeparateAccountRate>.08</SeparateAccountRate>
+      <SeparateAccountRate>0.08</SeparateAccountRate>
       <SeparateAccountRateType>Gross rate</SeparateAccountRateType>
       <Smoking>Nonsmoker</Smoking>
       <SolveBeginTime>45</SolveBeginTime>
@@ -574,8 +574,8 @@
       <SupplementalSpecifiedAmount>0</SupplementalSpecifiedAmount>
       <SurviveToAge>99</SurviveToAge>
       <SurviveToType>Survive to age limit</SurviveToType>
-      <SurviveToYear>99</SurviveToYear>
-      <TaxBracket>0</TaxBracket>
+      <SurviveToYear>100</SurviveToYear>
+      <TaxBracket/>
       <TermAdjustmentMethod>Adjust base first</TermAdjustmentMethod>
       <TermRider>No</TermRider>
       <TermRiderAmount>0</TermRiderAmount>
@@ -584,7 +584,7 @@
       <TotalSpecifiedAmount>1000000</TotalSpecifiedAmount>
       <UnderwritingClass>Standard</UnderwritingClass>
       <UseAverageOfAllFunds>No</UseAverageOfAllFunds>
-      <UseCurrentDeclaredRate>No</UseCurrentDeclaredRate>
+      <UseCurrentDeclaredRate>Yes</UseCurrentDeclaredRate>
       <UseDOB>No</UseDOB>
       <UseExperienceRating>No</UseExperienceRating>
       <UsePartialMortality>No</UsePartialMortality>
diff --git a/sample.ill b/sample.ill
index 6caecde..6678ec5 100644
--- a/sample.ill
+++ b/sample.ill
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
-<single_cell_document version="2" data_source="1">
-  <cell version="8">
+<single_cell_document version="9" data_source="1">
+  <cell version="9">
     <AccidentalDeathBenefit>No</AccidentalDeathBenefit>
     <Address/>
     <AgentAddress>*** REQUIRED FIELD MISSING ***</AgentAddress>
@@ -27,18 +27,18 @@
     <CorporationPaymentMode>annual</CorporationPaymentMode>
     <CorporationPremiumTableFactor>1</CorporationPremiumTableFactor>
     <CorporationState>CT</CorporationState>
-    <CorporationTaxBracket>0</CorporationTaxBracket>
+    <CorporationTaxBracket/>
     <CorporationZipCode/>
     <Country>US</Country>
     <CountryCoiMultiplier>1</CountryCoiMultiplier>
     <CreateSupplementalReport>No</CreateSupplementalReport>
     <CurrentCoiMultiplier>1</CurrentCoiMultiplier>
-    <DateOfBirth>2437604</DateOfBirth>
+    <DateOfBirth>2441862</DateOfBirth>
     <DeathBenefitOption>a</DeathBenefitOption>
     <DefinitionOfLifeInsurance>CVAT</DefinitionOfLifeInsurance>
-    <DefinitionOfMaterialChange>Earlier of increase or unnecessary 
premium</DefinitionOfMaterialChange>
+    <DefinitionOfMaterialChange>Unnecessary 
premium</DefinitionOfMaterialChange>
     <Dumpin>0</Dumpin>
-    <EffectiveDate>2454040</EffectiveDate>
+    <EffectiveDate>2458298</EffectiveDate>
     <EffectiveDateToday>No</EffectiveDateToday>
     <EmployeeClass/>
     <ExperienceRatingInitialKFactor>1</ExperienceRatingInitialKFactor>
@@ -50,7 +50,7 @@
     <ExtraCompensationOnPremium>0</ExtraCompensationOnPremium>
     <ExtraMonthlyCustodialFee>0</ExtraMonthlyCustodialFee>
     <FlatExtra>0</FlatExtra>
-    <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 </FundAllocations>
+    <FundAllocations>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0</FundAllocations>
     <FundChoiceType>Choose funds</FundChoiceType>
     <Gender>Male</Gender>
     <GeneralAccountRate>0.06</GeneralAccountRate>
@@ -62,7 +62,7 @@
     <IndividualPaymentStrategy>PmtInputScalar</IndividualPaymentStrategy>
     <Inforce7702AAmountsPaidHistory>0</Inforce7702AAmountsPaidHistory>
     <InforceAnnualTargetPremium>0</InforceAnnualTargetPremium>
-    <InforceAsOfDate>2454040</InforceAsOfDate>
+    <InforceAsOfDate>2458298</InforceAsOfDate>
     <InforceAvBeforeLastMc>0</InforceAvBeforeLastMc>
     <InforceContractMonth>0</InforceContractMonth>
     <InforceContractYear>0</InforceContractYear>
@@ -104,8 +104,8 @@
     <Internal1035ExchangeFromMec>No</Internal1035ExchangeFromMec>
     <Internal1035ExchangeTaxBasis>0</Internal1035ExchangeTaxBasis>
     <IssueAge>45</IssueAge>
-    <LastCoiReentryDate>2454040</LastCoiReentryDate>
-    <LastMaterialChangeDate>2454040</LastMaterialChangeDate>
+    <LastCoiReentryDate>2458298</LastCoiReentryDate>
+    <LastMaterialChangeDate>2458298</LastMaterialChangeDate>
     <ListBillDate>2440588</ListBillDate>
     <LoanRate>0.06</LoanRate>
     <LoanRateType>Fixed loan rate</LoanRateType>
@@ -131,7 +131,7 @@
     <SalarySpecifiedAmountCap>100000</SalarySpecifiedAmountCap>
     <SalarySpecifiedAmountFactor>1</SalarySpecifiedAmountFactor>
     <SalarySpecifiedAmountOffset>50000</SalarySpecifiedAmountOffset>
-    <SeparateAccountRate>.08</SeparateAccountRate>
+    <SeparateAccountRate>0.08</SeparateAccountRate>
     <SeparateAccountRateType>Gross rate</SeparateAccountRateType>
     <Smoking>Nonsmoker</Smoking>
     <SolveBeginTime>45</SolveBeginTime>
@@ -177,8 +177,8 @@
     <SupplementalSpecifiedAmount>0</SupplementalSpecifiedAmount>
     <SurviveToAge>99</SurviveToAge>
     <SurviveToType>Survive to age limit</SurviveToType>
-    <SurviveToYear>99</SurviveToYear>
-    <TaxBracket>0</TaxBracket>
+    <SurviveToYear>100</SurviveToYear>
+    <TaxBracket/>
     <TermAdjustmentMethod>Adjust base first</TermAdjustmentMethod>
     <TermRider>No</TermRider>
     <TermRiderAmount>0</TermRiderAmount>
@@ -187,7 +187,7 @@
     <TotalSpecifiedAmount>1000000</TotalSpecifiedAmount>
     <UnderwritingClass>Standard</UnderwritingClass>
     <UseAverageOfAllFunds>No</UseAverageOfAllFunds>
-    <UseCurrentDeclaredRate>No</UseCurrentDeclaredRate>
+    <UseCurrentDeclaredRate>Yes</UseCurrentDeclaredRate>
     <UseDOB>No</UseDOB>
     <UseExperienceRating>No</UseExperienceRating>
     <UsePartialMortality>No</UsePartialMortality>
diff --git a/single_cell_document.cpp b/single_cell_document.cpp
index d54fd1e..dba910a 100644
--- a/single_cell_document.cpp
+++ b/single_cell_document.cpp
@@ -61,10 +61,12 @@ single_cell_document::single_cell_document(std::string 
const& filename)
 /// version 0: [prior to the lmi epoch]
 /// version 1: 20130428T1828Z
 /// version 2: 20150316T0409Z
+///   [versions 3-8 never existed]
+/// version 9: 20180628T1936Z
 
 int single_cell_document::class_version() const
 {
-    return 2;
+    return 9;
 }
 
 /// Name of xml root element.
diff --git a/single_cell_document.rnc b/single_cell_document.rnc
index 0394c57..2608198 100644
--- a/single_cell_document.rnc
+++ b/single_cell_document.rnc
@@ -22,7 +22,7 @@
 # Use file extension '.ill' for single-life xml documents.
 
 start = element single_cell_document
-    {attribute version {"2"}
+    {attribute version {"9"}
     ,attribute data_source {xsd:nonNegativeInteger}
 
     ,cell_element
diff --git a/single_cell_document.xsd b/single_cell_document.xsd
index e5369d4..a69cdb0 100644
--- a/single_cell_document.xsd
+++ b/single_cell_document.xsd
@@ -31,7 +31,7 @@
           <xs:attribute name="version" use="required">
             <xs:simpleType>
               <xs:restriction base="xs:token">
-                <xs:enumeration value="2"/>
+                <xs:enumeration value="9"/>
               </xs:restriction>
             </xs:simpleType>
           </xs:attribute>
diff --git a/single_cell_document_02.rnc b/single_cell_document_02.rnc
index 0394c57..d93e9cd 100644
--- a/single_cell_document_02.rnc
+++ b/single_cell_document_02.rnc
@@ -28,5 +28,5 @@ start = element single_cell_document
     ,cell_element
     }
 
-include "cell.rnc"
+include "cell_08.rnc"
 
diff --git a/single_cell_document_02.xsd b/single_cell_document_02.xsd
index e5369d4..17a914e 100644
--- a/single_cell_document_02.xsd
+++ b/single_cell_document_02.xsd
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
-  <xs:include schemaLocation="cell.xsd"/>
+  <xs:include schemaLocation="cell_08.xsd"/>
   <!--
     RELAX NG schema for '.ill' files (class single_cell_document).
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]