lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Calculation summary XML resources structure (with some example


From: Vadim Zeitlin
Subject: Re: [lmi] Calculation summary XML resources structure (with some examples)
Date: Thu, 21 Sep 2006 15:14:09 +0200

On Thu, 21 Sep 2006 14:32:08 +0200 Evgeniy Tarassov <address@hidden> wrote:

ET> schema.xsd - a Schema file describing illustration data (data.xml) and
ET> column traits file (format.xml)
ET> 
ET> data.xml - an example of illustration data

 Just to make it simpler to understand the proposed XML format, without
having to read the entire schema (which is, IMHO, quite readable but an
example is still clearer), here is an extract from data.xml:

<?xml version="1.0" ?>
<illustration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                  xsi:noNamespaceSchemaLocation="file:schema.xsd">
    <!-- string scalars -->
    <double_scalar name="Age">45</double_scalar>
    <double_scalar name="GuarMaxMandE">0.09</double_scalar>
    ...
    <double_scalar name="InitTgtPrem">55394.15</double_scalar>

    <string_scalar name="AllowDbo3">1</string_scalar>
    <string_scalar name="AvName">Account</string_scalar>
    ...
    <string_scalar name="InitAnnGenAcctInt" 
basis="run_curr_basis">0.06</string_scalar>
    ...
    <string_scalar name="SubstandardTable">None</string_scalar>

    <variant name="Outlay">
        <duration>20000</duration>
        ...
        <duration>20000</duration>
    </variant>
    <variant name="AcctVal" basis="run_curr_basis">
        <duration>17696</duration>
        <duration>36348</duration>
        ...
        <duration>6305653</duration>
    </variant>
    <variant name="AcctVal" basis="run_guar_basis">
        <duration>14997</duration>
        ...
        <duration>0</duration>
    </variant>
    <variant name="CSVNet" basis="run_curr_basis">
        <duration>17696</duration>
        ...
    </variant>
    ...
    <supplementalreport>
        <column name="InitAnnGenAcctInt" basis="run_curr_basis" />
        <column name="InitAnnGenAcctInt" basis="run_guar_basis" />
    </supplementalreport>
</illustration>


 And here is the (fragment of) HTML generated from it using html.xsl:

<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <title>Let me illustrate...</title>
  </head>
  <body>
    <font face="Arial" size="-1">
      <p xmlns="">
      Calculation summary for<br/><br/>Male,
            Nontobacco,

            age
            45<br/>23,844.41
            guaranteed premium<br/><br/>22,110.68
            initial guideline level premium<br/>239,162.50
            initial guideline single premium<br/>55,394.15
            initial seven-pay premium<br/>Non-MEC<br/><br/>55,394.15
            initial target premium<br/>1,000,000
            initial base specified amount<br/>0
            initial term specified amount<br/>1,000,000
            initial total specified amount<br/> state of jurisdiction<br/></p>
      <hr xmlns=""/>
      <table xmlns="" awidth="100%">
        <tr align="right">
          <th/>
          <th/>
          <th>Guaranteed</th>
          <th>Guaranteed</th>
          <th>Guaranteed</th>
          <th>Current</th>
          <th>Current</th>
          <th>Current</th>
        </tr>
        <tr align="right">
          <th/>
          <th/>
          <th>Account</th>
          <th>Surrender</th>
          <th>Death</th>
          <th>Account</th>
          <th>Surrender</th>
          <th>Death</th>
        </tr>
        <tr align="right">
          <th>Age</th>
          <th>Outlay</th>
          <th>Value</th>
          <th>Value</th>
          <th>Benefit</th>
          <th>Value</th>
          <th>Value</th>
          <th>Benefit</th>
        </tr>
        <tr/>
        <tr align="right">
          <td>45</td>
          <td>20,000</td>
          <td>14,997</td>
          <td>14,997</td>
          <td>1,000,000</td>
          <td>17,696</td>
          <td>17,696</td>
          <td>1,000,000</td>
        </tr>
        ... many more rows ...
      </table>
    </font>
  </body>
</html>

 Of course, many additional customizations are possible, either via
formats.xml file or by changing/extending html.xsl.

 Looking forward to your comments!
VZ





reply via email to

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