Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anand 2 posts 22 karma points
    May 08, 2011 @ 21:01
    Anand
    0

    XML to HTML using XSLT

    Hi All,

    This is gr8 forum, where  i can lots & loads of Apprecition.

    As of now i am strcuk up with a problem.. while generating HTML page from XML  using XSL

    XML Structure

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <setup xmlns="999"
     xmlns:tns="0000"
     xmlns:xsi="0000"
     xsi:schemaLocation="0000 RpsApplication.xsd">
     <client>
      <description>Travelers Insurance Company</description>
      <rits_id>TVI</rits_id>
      <time_zone_code>US/Central</time_zone_code>
      <directory_code>TRAVINS</directory_code>
      <application code="TVI508">
       <name>Claims Sub - Hartford</name>
       <production_status>Prod</production_status>
       <sup_instructions_enabled>true</sup_instructions_enabled>
       <store_images_in_egistics>true</store_images_in_egistics>
       <client_views_batch_header>false</client_views_batch_header>
       <lockbox_info>
        <lockbox number="0000660339">
         <client site_number="04" site_name="Dallas" id="3211" />
         <client site_number="20" site_name="Naperville" id="3211" />
         <carrier_details>
          <name>FedEx</name>
          <code>FedEx</code>
          <courier_pickup timeformat="yyyy-mm-dd hh:mi" time="2007-01-01 11:00" />
         </carrier_details>
         <bankrelation>
          
          <bank_identifier>32110001</bank_identifier><bank_name>Janx</bank_name>
          <branch_name>MKIL</branch_name>
          <dda_number>921254918</dda_number>
          <rt_number>021000021</rt_number>
          <deposit_method>ICL</deposit_method>
         </bankrelation>
         <doc_types>
          <doc name="Check (30)" type="Payment" id="2">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="CCA" is_misc="false" index="1" />
            <amount is_full_pay_field = "0" name="CC2" is_misc="false" index="2" />
            <amount is_full_pay_field = "0" name="CC3/BAL" is_misc="false" index="3" />
            <amount is_full_pay_field = "0" name="FLD" is_misc="false" index="4" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Routing #" index="1" />
            <account name="Checking Acct #" index="2" />
            <account name="Personal Check #" index="3" />
            <account name="Business Check #" index="4" />
            <account name="Check Number" index="5" />
            <account name="OnD Flag" index="6" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
            <search display_order="11" search_order="7"
             is_display_field="true" is_search_field="true" search_column="4"
             is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
             field_name="Checking Acct #" />
            <search display_order="12" search_order="8"
             is_display_field="true" is_search_field="true" search_column="5"
             is_money_amt="false" doc_column_name="acct_num_5"
             field_type="String" field_name="Check Number" /> 
           </search_mappings>
          </doc>
          <doc name="Check (31)" type="Payment" id="3">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="CCA" is_misc="false" index="1" />
            <amount is_full_pay_field = "0" name="CC2" is_misc="false" index="2" />
            <amount is_full_pay_field = "0" name="CC3/BAL" is_misc="false" index="3" />
            <amount is_full_pay_field = "0" name="FLD" is_misc="false" index="4" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Routing #" index="1" />
            <account name="Checking Acct #" index="2" />
            <account name="Personal Check #" index="3" />
            <account name="Business Check #" index="4" />
            <account name="Check Number" index="5" />
            <account name="OnD Flag" index="6" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
            <search display_order="11" search_order="7"
             is_display_field="true" is_search_field="true" search_column="4"
             is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
             field_name="Checking Acct #" />
            <search display_order="12" search_order="8"
             is_display_field="true" is_search_field="true" search_column="5"
             is_money_amt="false" doc_column_name="acct_num_5"
             field_type="String" field_name="Check Number" /> 
           </search_mappings>
          </doc>
          <doc name="Check (32)" type="Payment" id="4">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="CCA" is_misc="false" index="1" />
            <amount is_full_pay_field = "0" name="CC2" is_misc="false" index="2" />
            <amount is_full_pay_field = "0" name="CC3/BAL" is_misc="false" index="3" />
            <amount is_full_pay_field = "0" name="FLD" is_misc="false" index="4" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Routing #" index="1" />
            <account name="Checking Acct #" index="2" />
            <account name="Personal Check #" index="3" />
            <account name="Business Check #" index="4" />
            <account name="Check Number" index="5" />
            <account name="OnD Flag" index="6" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
            <search display_order="11" search_order="7"
             is_display_field="true" is_search_field="true" search_column="4"
             is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
             field_name="Checking Acct #" />
            <search display_order="12" search_order="8"
             is_display_field="true" is_search_field="true" search_column="5"
             is_money_amt="false" doc_column_name="acct_num_5"
             field_type="String" field_name="Check Number" /> 
           </search_mappings>
          </doc>
          
          <doc name="Ghost Stub with acct" type="Coupon" id="30">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="List Stub Amount" is_misc="false" index="5" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Claim Number" index="1" />
            <account name="AFO" index="2" />
            <account name="RFO" index="3" />
            <account name="Initials" index="4" />
            <account name="Closed" index="5" />
            <account name="Line of Business" index="6" />
            <account name="Error Type" index="7" />
            <account name="Reasons to the Log" index="8" />
            <account name="Reasons from the log" index="9" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <Mark_Sense_mappings>
            <MarkSense name="Indicator 1" index="1" />
           </Mark_Sense_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings>
           </doc>
          
          <doc name="Ghost Stub without acct" type="Coupon" id="31">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="List Stub Amount" is_misc="false" index="5" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Claim Number" index="1" />
            <account name="AFO" index="2" />
            <account name="RFO" index="3" />
            <account name="Initials" index="4" />
            <account name="Closed" index="5" />
            <account name="Line of Business" index="6" />
            <account name="Error Type" index="7" />
            <account name="Reasons to the Log" index="8" />
            <account name="Reasons from the log" index="9" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <Mark_Sense_mappings>
            <MarkSense name="Indicator 1" index="1" />
           </Mark_Sense_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings>  
          </doc>
          
          <doc name="C &amp; L stub" type="Coupon" id="35">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="List Stub Amount" is_misc="false" index="5" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Claim Number" index="1" />
            <account name="AFO" index="2" />
            <account name="RFO" index="3" />
            <account name="Initials" index="4" />
            <account name="Closed" index="5" />
            <account name="Line of Business" index="6" />
            <account name="Error Type" index="7" />
            <account name="Reasons to the Log" index="8" />
            <account name="Reasons from the log" index="9" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <Mark_Sense_mappings>
            <MarkSense name="Indicator 1" index="1" />
           </Mark_Sense_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings>
           </doc>
          
         <doc name="Correspondence" type="Correspondence" id="40">
           <account_number_mappings>
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings> 
           </doc>
          
          <doc name="Envelope" type="Envelope" id="42">
           <account_number_mappings>
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings>
          </doc>
          
         <doc name="Add Coupon" type="Coupon" id="98">
           <amount_mappings>
            <amount is_full_pay_field = "0" name="List Stub Amount" is_misc="false" index="5" />
           </amount_mappings>
           <account_number_mappings>
            <account name="Claim Number" index="1" />
            <account name="AFO" index="2" />
            <account name="RFO" index="3" />
            <account name="Initials" index="4" />
            <account name="Closed" index="5" />
            <account name="Line of Business" index="6" />
            <account name="Error Type" index="7" />
            <account name="Reasons to the Log" index="8" />
            <account name="Reasons from the log" index="9" />
            <account name="RPS Sequence" index="10" />
           </account_number_mappings>
           <Mark_Sense_mappings>
            <MarkSense name="Indicator 1" index="1" />
           </Mark_Sense_mappings>
           <search_mappings>
            <search display_order="1" search_order="1"
             is_display_field="true" is_search_field="true" search_column="int"
             is_money_amt="false" doc_column_name="T2_IDENTIFIER"
             field_type="String" field_name="RPS Sequence" />
            <search display_order="2" search_order="2"
             is_display_field="true" is_search_field="true" search_column="date"
             is_money_amt="false" doc_column_name="PROCESS_DATE" field_type="Date"
             field_name="Process Date" />
            <search display_order="3" search_order="3"
                                        is_display_field="true" is_search_field="true" search_column="4"
                                        is_money_amt="false" doc_column_name="acct_num_1" field_type="String"
                                        field_name="Claim Number" />
            <search display_order="4" search_order="4"
                                        is_display_field="true" is_search_field="true" search_column="5"
                                        is_money_amt="false" doc_column_name="acct_num_2" field_type="String"
                                        field_name="AFO" /> 
            <search display_order="5" search_order="5"
                                        is_display_field="true" is_search_field="true" search_column="6"
                                        is_money_amt="false" doc_column_name="acct_num_3" field_type="List"
                                        field_name="RFO" /> 
               <search display_order="6" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="7"
                                        is_money_amt="false" doc_column_name="acct_num_4" field_type="String"
                                        field_name="Initials" />   
            <search display_order="7" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="8"
                                        is_money_amt="false" doc_column_name="acct_num_5" field_type="List"
                                        field_name="Closed" />   
            <search display_order="8" search_order="9"
                                        is_display_field="true" is_search_field="true" search_column="9"
                                        is_money_amt="false" doc_column_name="acct_num_6" field_type="List"
                                        field_name="Line of Business" />   
            <search display_order="9" search_order="0"
                                        is_display_field="true" is_search_field="false" search_column="10"
                                        is_money_amt="false" doc_column_name="acct_num_7" field_type="String"
                                        field_name="Error Type" />   
            <search display_order="10" search_order="6"
             is_display_field="true" is_search_field="true" search_column="amt"
             is_money_amt="true" doc_column_name="APPLIED_AMT" field_type="Number"
             field_name="Applied Amount" />
           </search_mappings>
           </doc>
         </doc_types>
         <doc_groups>
              <docgroup synthetic_coupon_type="98" rits_volume_code="CKONLY"
           batch_type="CheckNoAccount" name="Check Only - 3600" id="60" />
          <docgroup synthetic_coupon_type="98" rits_volume_code="CKONLY"
           batch_type="CheckNoAccount" name="Check Only without acct" id="61" />
          <docgroup synthetic_coupon_type="98" rits_volume_code="CKLSTDTL"
           batch_type="CheckAndList" name="Check and List (multi checks)" id="65" />
          <docgroup synthetic_coupon_type="98" batch_type="Rebatch"
           name="T2 Suspense" id="99" />
         </doc_groups>
        </lockbox>
       </lockbox_info>
       <online_decisioning arm_preview="false"
        acceptance_interval="300" online_decisioning_days="1"
        online_decisioning_active="true">
        <weekly_schedule time_of_day_format="YYYY-MM-DD HH:MI:SS PM TZR"
         time_of_day_time="2010-01-01 02:00:00 PM US/CENTRAL"
         business_days_only="true" start_date="01/01/2010">
         <day_to_weekly_schedule day="Monday" />
         <day_to_weekly_schedule day="Tuesday" />
         <day_to_weekly_schedule day="Wednesday" />
         <day_to_weekly_schedule day="Thursday" />
         <day_to_weekly_schedule day="Friday" />
        </weekly_schedule>
        <reasons>
        
         <reason pocket_configuration_code="Reject" name="SubroOps" code="SubroOps" decision="NoPay" />
         <reason pocket_configuration_code="Reject" name="Other Claims" code="OtherClaims" decision="NoPay" />
         <reason pocket_configuration_code="Reject" name="Other TIC" code="OtherTIC" decision="NoPay" />
         <reason pocket_configuration_code="Reject" name="Not TIC" code="NotTIC" decision="NoPay" />
         <reason pocket_configuration_code="Reject" name="Other" code="Other" decision="NoPay" />
            <reason pocket_configuration_code="Review" name="Rescan" code="Rescan" decision="NoPay" />
         <reason pocket_configuration_code="Review" name="Rescan in Mass Subro" code="RescaninMassSubro" decision="NoPay" />
         <reason pocket_configuration_code="Deposit" name="Allocation corrected" code="Allocationcorrected" decision="Pay" /> 
         <reason pocket_configuration_code="Deposit" name="Allocation approved as is" code="ApprovedAsIs" decision="Pay" />
         <reason pocket_configuration_code="Suspend" name="Waiting for return call/email" code="Waitingforreturncallemail" decision="Undecided" />
        </reasons>
       </online_decisioning>
       <Business_Calendar sunday_processing="false"
        saturday_processing="false">
        <Business_Calendar_Event sendarfile="false"
         event_type="NonProcessing" format="mm/dd/yyyy" date="12/25/2011"
         notes="No OnD Cutoff No AR" />
        <Business_Calendar_Event sendarfile="false"
         event_type="NonProcessing" format="mm/dd/yyyy" date="01/01/2012"
         notes="No OnD Cutoff No AR" />
       </Business_Calendar>
       <new_custom_fields>
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="7" minlen="4"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="CCA" ></field>
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="8" minlen="2"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="CC2" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="8" minlen="2"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="CC3/BAL" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="8" minlen="2"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="FLD" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" field_role="PaymentRTNum"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="9" minlen="9" field_table_type="RPS Item" field_type="String"
         money_amount="false" name="Routing #" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" field_role="PaymentDDAValue"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="17" minlen="5" field_table_type="RPS Item" field_type="String"
         money_amount="false" name="Checking Acct #" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="8" minlen="0"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Personal Check #" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="15" minlen="0"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Business Check #" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" field_role="PaymentCheckSeqNum"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="15" minlen="0" field_table_type="RPS Item" field_type="String"
         money_amount="false" name="Check Number" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="20" minlen="0"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="OnD Flag" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="true" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="20" minlen="1"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="RPS Sequence" />
        <field regular_exp="[a-zA-Z0-9]{7}" error_message="Field value must be 7 positions" maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" field_role="AcctNum" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="7" minlen="1"
          field_table_type="RPS Item" field_type="String" money_amount="false"
            name="Claim Number"/>
          <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="5" minlen="1"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="AFO" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="5" minlen="1"
         error_message="Value not in the acceptable list"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="RFO" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="5" minlen="1"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Initials" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="3" minlen="1" error_message="Value must be Yes or No"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="Closed" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="7" minlen="1" error_message="Value not in the acceptable list"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="Line of Business" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="20" minlen="1"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Error Type" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="20" minlen="1" error_message="Value not in the acceptable list"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="Reasons to the Log" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="true"
         online_descisioning_read="false" maxlen="20" minlen="1" error_message="Value not in the acceptable list"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="Reasons from the log" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="1" minlen="1"
         field_table_type="RPS Item" field_type="Boolean" money_amount="false"
         name="Indicator 1" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="8" minlen="2"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="List Stub Amount" />
        
        
        
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" field_role="CurrentApplied"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="Number" money_amount="false" name="Doc ID on Payment" />
        <field maxval="-9999" minval="-9999" on_payment="true"
         on_coupon="false" field_role="CurrentApplied"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="Number" money_amount="true" name="Payment Applied Amount" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" field_role="DocID" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="-9999" minlen="-9999"
         field_table_type="RPS Item" field_type="Number" money_amount="false"
         name="Doc ID on Coupon" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="true" field_role="CurrentApplied"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="Number" money_amount="true" name="Coupon Applied Amount" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="SiteID" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="-9999" minlen="-9999"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Site ID" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="ClientID" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="-9999" minlen="-9999"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Client ID" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="BatchType" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="-9999" minlen="-9999"
         field_table_type="RPS Item" field_type="List" money_amount="false"
         name="Batch Type" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="DocGroupID" online_decisioning_write="false"
         online_descisioning_read="false" maxlen="-9999" minlen="-9999"
         field_table_type="RPS Item" field_type="String" money_amount="false"
         name="Doc Group ID" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="ReceivedDate"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="String" money_amount="false" name="Date Received" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="CurrentApplied"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="Number" money_amount="false" name="Total Check Amount" />
        <field maxval="-9999" minval="-9999" on_payment="false"
         on_coupon="false" field_role="WausauApplied"
         online_decisioning_write="false" online_descisioning_read="false"
         maxlen="-9999" minlen="-9999" field_table_type="RPS Item"
         field_type="Number" money_amount="false" name="Total Coupon Amount" />
       </new_custom_fields>
       <new_users_privilege>
        <privilege role="Image Archive">
         <permissions permission="SearchImageArchive" />
         <permissions permission="ExportImageArchive" />
         <permissions permission="AddAnnotation" />
         <permissions permission="ViewIATransDetail" />
        </privilege>
        <privilege role="Online Decisioning - Basic ">
             <permissions permission="SearchImageArchive" />
             <permissions permission="ExportImageArchive" />
             <permissions permission="AddAnnotation" />
             <permissions permission="DecisionOLD" />
             <permissions permission="ViewIATransDetail" />
        </privilege>
         <privilege role="Client Admin">
         <permissions permission="AdminUser" />
         <permissions permission="RunReport" />
         <permissions permission="SearchImageArchive" />
         <permissions permission="ExportImageArchive" />
         <permissions permission="AddAnnotation" />
         <permissions permission="DecisionOLD" />
         <permissions permission="ViewIATransDetail" />
       </privilege>
       </new_users_privilege>
           <ar>
        <ar_schedule>
         <schedule_type start_date="01/01/2010">
          <weekly time_of_day_format="YYYY-MM-DD HH24:MI:SS TZR"
           time_of_day="2010-01-01 17:30:00 US/Central">
           <schedule_days day="Monday" />
           <schedule_days day="Tuesday" />
           <schedule_days day="Wednesday" />
           <schedule_days day="Thursday" />
           <schedule_days day="Friday" />
          </weekly>
         </schedule_type>
        </ar_schedule>
        <ar_data hard_cutoff_format="yyyy-mm-dd hh24:mi"
         hard_cutoff_time="2010-01-01 17:30" delivery_method="FTP"
         send_manually="false"  file_name_mask="regulus_credits_claimsubro.d[YYMMDD].T[HHMISS].txt"
         file_spec_name="ClaimsSub" single_ar_file_per_day="true"
         file_dollar_amount_limit="9999999999.99" transmit_empty_mid_day="false"
         transmit_empty_endof_day="false">
         <outgoing_file_spec>
          <client id="3211">
           <site id="04" />
           <site id="20" />
          </client>
          <file_spec file_scope_size="99999999" file_record_size="90"
           file_name_mask="regulus_credits_claimsubro.d[YYMMDD].T[HHMISS].txt" file_type="TVICSH" />
          <file_transmission_windows>
           <transmission_window end_date_format="yyyy-mm-dd hh24:mi"
            end_date="2010-01-01 18:00" begin_date_format="yyyy-mm-dd hh24:mi"
            begin_date="2010-01-01 17:00" />
          </file_transmission_windows>
         </outgoing_file_spec>
        </ar_data>
       </ar>
       </application>
     </client>
    </setup>
    XSL :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

     <xsl:output method="html" />
     <!-- ignore document text -->
     <xsl:template
      match="text()[preceding-sibling::node() or following-sibling::node()]" />
     <!-- JS: ignore attributes (convert to comment) -->
     <xsl:template match="/*">

      <body>
       <style>

        label{
        float: left;
        width: 120px;
        font-weight: bold;
        }
        input, textarea{
        width: 180px;
        margin-bottom: 5px;
        }
        textarea{
        width: 250px;
        height: 150px;
        }
        .boxes{
        width: 1em;
        }
        #submitbutton{
        margin-left: 120px;
        margin-top: 5px;
        width: 90px;
        }
        br{
        clear: left;
        }
        
       </style>

      </body>

      <xsl:apply-templates select="node()" />
     </xsl:template>
     <xsl:template name="attrs">
      <xsl:if test="not(count(attribute::*)=0)">
       <xsl:for-each select="node()|@*" />
    <form method="post">
       <ul class="menu">
        <li>
         <a href="/home" class="active">
          <span>
           <xsl:value-of select="local-name()" />
          </span>
         </a>
        </li>
       </ul>
       </form>
       <xsl:for-each select="attribute::*">
        
         <table cellpadding="2" cellspacing="1" border="1" bgcolor="lightblue">
          <tr>
           <td>
           
           
            <label for="user">
             <xsl:value-of select="local-name()" />
            </label>
            <input type="text">
             <xsl:attribute name="id">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="name">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="value">
      <xsl:value-of select="." />
      </xsl:attribute>
            </input><br/>
           </td>
           
          </tr>
          
          
           
         </table>
         
         
         
           
         <xsl:if test="not(position()=last() or last()=1)" />

      
        
        <!--<input type="submit">
             <xsl:attribute name="id">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="name">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="value">
      <xsl:text>SUBMIT</xsl:text>
      </xsl:attribute>
            </input>
       --></xsl:for-each>
      </xsl:if>
     </xsl:template>

     <!-- string -->
     <xsl:template match="text()">
      <xsl:call-template name="escape-string">
       <xsl:with-param name="s" select="." />
      </xsl:call-template>
     </xsl:template>
     <!-- Main template for escaping strings; used by above template and for 
      object-properties Responsibilities: placed quotes around string, and chain
      up to next filter, escape-bs-string -->
     <xsl:template name="escape-string">
      <xsl:param name="s" />
      <xsl:text>"</xsl:text>
      <xsl:call-template name="escape-bs-string">
       <xsl:with-param name="s" select="$s" />
      </xsl:call-template>
      <xsl:text>"</xsl:text>
     </xsl:template>
     <!-- Escape the backslash (\) before everything else. -->
     <xsl:template name="escape-bs-string">
      <xsl:param name="s" />
      <xsl:choose>
       <xsl:when test="contains($s,'\')">
        <xsl:call-template name="escape-quot-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'\'),'\\')" />
        </xsl:call-template>
        <xsl:call-template name="escape-bs-string">
         <xsl:with-param name="s" select="substring-after($s,'\')" />
        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
        <xsl:call-template name="escape-quot-string">
         <xsl:with-param name="s" select="$s" />
        </xsl:call-template>
       </xsl:otherwise>
      </xsl:choose>
     </xsl:template>
     <!-- Escape the double quote ("). -->
     <xsl:template name="escape-quot-string">
      <xsl:param name="s" />
      <xsl:choose>
       <xsl:when test="contains($s,'&quot;')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'&quot;'),'\&quot;')" />
        </xsl:call-template>
        <xsl:call-template name="escape-quot-string">
         <xsl:with-param name="s" select="substring-after($s,'&quot;')" />
        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s" select="$s" />
        </xsl:call-template>
       </xsl:otherwise>
      </xsl:choose>
     </xsl:template>
     <!-- JS: old version of template, doing the same as escape-bs-string and 
      escape-quot-string together, only more complicated -->
     <xsl:template name="escape-bs-and-quot-string-in-one-template">
      <xsl:param name="s" />
      <!-- First handle -->
      <xsl:choose>
       <!-- double quote -->
       <xsl:when test="contains($s,'&quot;') and not(contains($s,'\'))">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s" select="substring-before($s,'&quot;')" />
        </xsl:call-template>
        <xsl:text>\"</xsl:text>
        <xsl:call-template name="escape-string">
         <xsl:with-param name="s" select="substring-after($s,'&quot;')" />
        </xsl:call-template>
       </xsl:when>
       <!-- backslash -->
       <xsl:when test="not(contains($s,'&quot;')) and contains($s,'\')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s" select="substring-before($s,'\')" />
        </xsl:call-template>
        <xsl:text>\\</xsl:text>
        <xsl:call-template name="escape-string">
         <xsl:with-param name="s" select="substring-after($s,'\')" />
        </xsl:call-template>
       </xsl:when>
       <xsl:when test="contains($s,'&quot;') and contains($s,'\')">
        <xsl:choose>
         <!-- double quote before backslash -->
         <xsl:when
          test="string-length(substring-before($s,'&quot;'))&lt;string-length(substring-before($s,'\'))">
          <xsl:call-template name="encode-string">
           <xsl:with-param name="s"
            select="substring-before($s,'&quot;')" />
          </xsl:call-template>
          <xsl:text>\"</xsl:text>
          <xsl:call-template name="escape-string">
           <xsl:with-param name="s"
            select="substring-after($s,'&quot;')" />
          </xsl:call-template>
         </xsl:when>
         <!-- backslash before double quote -->
         <xsl:when
          test="string-length(substring-before($s,'&quot;'))&gt;string-length(substring-before($s,'\'))">
          <xsl:call-template name="encode-string">
           <xsl:with-param name="s" select="substring-before($s,'\')" />
          </xsl:call-template>
          <xsl:text>\\</xsl:text>
          <xsl:call-template name="escape-string">
           <xsl:with-param name="s" select="substring-after($s,'\')" />
          </xsl:call-template>
         </xsl:when>
        </xsl:choose>
       </xsl:when>
       <xsl:otherwise>
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s" select="$s" />
        </xsl:call-template>
       </xsl:otherwise>
      </xsl:choose>
     </xsl:template>
     <!-- Replace tab, line feed and/or carriage return by its matching escape 
      code. Also escape tag-close (</tag> to <\/tag> for client-side javascript
      compliance). Can't escape backslash or double quote here, because they don't
      replace characters (&#x0; becomes \t), but they prefix characters (\ becomes
      \\). Besides, backslash should be seperate anyway, because it should be processed
      first. This function can't do that. -->
     <xsl:template name="encode-string">
      <xsl:param name="s" />
      <xsl:choose>
       <!-- tab -->
       <xsl:when test="contains($s,'&#x9;')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'&#x9;'),'\t',substring-after($s,'&#x9;'))" />
        </xsl:call-template>
       </xsl:when>
       <!-- line feed -->
       <xsl:when test="contains($s,'&#xA;')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'&#xA;'),'\n',substring-after($s,'&#xA;'))" />
        </xsl:call-template>
       </xsl:when>
       <!-- carriage return -->
       <xsl:when test="contains($s,'&#xD;')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'&#xD;'),'\r',substring-after($s,'&#xD;'))" />
        </xsl:call-template>
       </xsl:when>
       <!-- JS: tag-close -->
       <xsl:when test="contains($s,'&lt;/')">
        <xsl:call-template name="encode-string">
         <xsl:with-param name="s"
          select="concat(substring-before($s,'&lt;/'),'&lt;\/',substring-after($s,'&lt;/'))" />
        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
        <xsl:value-of select="$s" />
       </xsl:otherwise>
      </xsl:choose>
     </xsl:template>
     <!-- number (no support for javascript mantissa) -->
     <xsl:template
      match="text()[not(string(number())='NaN' or
                           (starts-with(.,'0' ) and . != '0'))]">
      <xsl:apply-templates select="node()|@*" />
     </xsl:template>
     <!-- boolean, case-insensitive -->
     <xsl:template match="text()[translate(.,'TRUE','true')='true']">
      true
     </xsl:template>
     <xsl:template match="text()[translate(.,'FALSE','false')='false']">
      false
     </xsl:template>
     <!-- JS: Date: YYYY-dd-mm[Thh] -->
     <xsl:template
      match="text()[string-length()=10
        and string-length(translate(substring(.,1,4),'0123456789',''))=0
        and substring(.,5,1)='-'
        and string-length(translate(substring(.,6,2),'0123456789',''))=0
        and substring(.,8,1)='-'
        and string-length(translate(substring(.,9,2),'0123456789',''))=0
        ]">
      <xsl:text>new Date(</xsl:text>
      <xsl:value-of select="substring(.,1,4)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,6,2)" />
      <xsl:text>-1,</xsl:text>
      <xsl:value-of select="substring(.,9,2)" />
      <xsl:text>)</xsl:text>
     </xsl:template>
     <!-- JS: Date: YYYY-dd-mmThh:mm -->
     <xsl:template
      match="text()[string-length()=16
        and string-length(translate(substring(.,1,4),'0123456789',''))=0
        and substring(.,5,1)='-'
        and string-length(translate(substring(.,6,2),'0123456789',''))=0
        and substring(.,8,1)='-'
        and string-length(translate(substring(.,9,2),'0123456789',''))=0
        and substring(.,11,1)='T'
        and string-length(translate(substring(.,12,2),'0123456789',''))=0
        and substring(.,14,1)=':'
        and string-length(translate(substring(.,15,2),'0123456789',''))=0
        ]">
      <xsl:text>new Date(</xsl:text>
      <xsl:value-of select="substring(.,1,4)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,6,2)" />
      <xsl:text>-1,</xsl:text>
      <xsl:value-of select="substring(.,9,2)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,12,2)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,15,2)" />
      <xsl:text>)</xsl:text>
     </xsl:template>
     <!-- JS: Date: YYYY-dd-mmThh:mm:ss -->
     <xsl:template
      match="text()[string-length()=19
        and string-length(translate(substring(.,1,4),'0123456789',''))=0
        and substring(.,5,1)='-'
        and string-length(translate(substring(.,6,2),'0123456789',''))=0
        and substring(.,8,1)='-'
        and string-length(translate(substring(.,9,2),'0123456789',''))=0
        and substring(.,11,1)='T'
        and string-length(translate(substring(.,12,2),'0123456789',''))=0
        and substring(.,14,1)=':'
        and string-length(translate(substring(.,15,2),'0123456789',''))=0
        and substring(.,17,1)=':'
        and string-length(translate(substring(.,18,2),'0123456789',''))=0
        ]">
      <xsl:text>new Date(</xsl:text>
      <xsl:value-of select="substring(.,1,4)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,6,2)" />
      <xsl:text>-1,</xsl:text>
      <xsl:value-of select="substring(.,9,2)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,12,2)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,15,2)" />
      <xsl:text>,</xsl:text>
      <xsl:value-of select="substring(.,18,2)" />
      <xsl:text>)</xsl:text>
     </xsl:template>
     <!-- object -->
     <xsl:template match="*" name="base">
      <xsl:if test="not(preceding-sibling::*)"><!-- { -->
      </xsl:if>
      <xsl:call-template name="indent" />
      <!-- JS: handle attributes -->
      <xsl:call-template name="attrs">
       <xsl:with-param name="attrs" select="../@*" />
      </xsl:call-template>
      <xsl:call-template name="quote-property">
       <xsl:with-param name="name" select="name()" />
      </xsl:call-template>
      <!-- check type of node -->
      <xsl:choose>
       <!-- null nodes -->
       <xsl:when test="count(child::node())=0">
        <table cellpadding="2" cellspacing="1" border="1" bgcolor="lightblue">
         <tr>
          <td>
           <label>
            <xsl:value-of select="local-name()" />
           </label>
          </td>
          <td>
           <input type="text">
            <xsl:attribute name="id">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
            <xsl:attribute name="name">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
            <xsl:attribute name="value">
      <xsl:value-of select="@*" />
      </xsl:attribute>
           </input>
          </td>
         </tr>
        </table>

       </xsl:when>
       <!-- other nodes -->
       <xsl:otherwise>
        <table cellpadding="2" cellspacing="1" border="1" bgcolor="lightblue">
         <tr>
          <td>
           <label>
            <xsl:value-of select="local-name()" />
           </label>
          </td>
          <td>
           <input type="text">
            <xsl:attribute name="id">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
            <xsl:attribute name="name">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
            <xsl:attribute name="value">
      <xsl:value-of select="node()|child::node()|@*" />
      </xsl:attribute>
           </input>
          </td>
          <td>
           <xsl:apply-templates />
          </td>
         </tr>
        </table>
       </xsl:otherwise>
      </xsl:choose>
      <!-- end of type check -->
      <xsl:if test="following-sibling::*" />
      <xsl:if test="not(following-sibling::*)" />
     </xsl:template>
     <!-- JS: don't quote if not necessary -->
     <xsl:template name="quote-property">
      <xsl:param name="name" />
      <xsl:choose>
       <xsl:when
        test="contains(',abstract,boolean,break,byte,case,catch,char,class,const,continue,debugger,default,delete,do,double,else,enum,export,extends,final,finally,float,for,function,goto,if,implements,import,in,instanceof,int,interface,long,native,new,package,private,protected,public,return,short,static,super,switch,synchronized,this,throw,throws,transient,try,typeof,var,void,volatile,while,with,',concat(',',$name,',')) or not(translate($name,'.-:','')=$name)">
        <xsl:call-template name="escape-string">
         <xsl:with-param name="s" select="$name" />
        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
       </xsl:otherwise>
      </xsl:choose>
     </xsl:template>
     <!-- array -->
     <xsl:template
      match="*[count(../*[name(../*)=name(.)])=count(../*) and count(../*)&gt;1]">
      <xsl:if test="not(preceding-sibling::*)">
      </xsl:if>
      <xsl:call-template name="indent" />
      <xsl:choose>
       <xsl:when test="not(child::node())">
        <!--<xsl:text>null</xsl:text> -->
       </xsl:when>
       <xsl:otherwise>
        <!--<li><xsl:apply-templates select="node()|child::node()|@*" /></li> -->
       </xsl:otherwise>
      </xsl:choose>
      <xsl:if test="following-sibling::*">
       <!-- Need to Code here to Make deeper nodes to work,this will work to
        the deepest node -->
       <xsl:if test="node()|child::node()|@*">
        <xsl:for-each select="node()|child::node()|@*">
         <table cellpadding="2" cellspacing="1" border="1" bgcolor="lightblue">
          <tr>
           <td>
            <label for="user">
             <xsl:value-of select="local-name()" />
            </label>
           </td>
           <td>
            <input type="text">
             <xsl:attribute name="id">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="name">
      <xsl:value-of select="local-name()" />
      </xsl:attribute>
             <xsl:attribute name="value">
      <xsl:value-of select="." />
      </xsl:attribute>
            </input>
           </td>
           <td>
            <xsl:apply-templates />
           </td>
          </tr>
         </table>

        </xsl:for-each>

       </xsl:if>
      </xsl:if>
      <xsl:if test="not(following-sibling::*)">

      </xsl:if>
     </xsl:template>
     <!-- JS: indent for reability -->
     <xsl:template name="indent">
      <xsl:text />
      <ul>
       <xsl:for-each select="ancestor::*" />
      </ul>

     </xsl:template>

     <!-- convert root element to an anonymous container -->

    </xsl:stylesheet>

     

    When i apply the above written XSL to the XML file i am able to get HTML page.. but the Prob is the way of displaying.

     

    My Parent node is CLIENT it contains few attribuutes and child Node (Application) which in turn contains lots of attributs & nodes (NODES inside NODES).I am able to fetch all elements & node

     

    i Want the OP as

     

    Client Node must be the Master Tab

    with in that Master its Child Nodes(Application) & attributes

    within Application (it must display its child nodes & attr) like (lockbox_info,bank_relation)

     

    this must keep reapeateds until all done..

     

    Some please help me out :(

     

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 08, 2011 @ 22:37
    Lee Kelleher
    2

    Hi Anand, welcome to the forum.

    Can't help but think that this is a homework assignment.   The XSLT looks like a hacked-up version of "xml2json.xslt" too.

    Due to the shear amount of work involved in understanding your XML and XSLT, I doubt anyone on this forum would have time to help you.

    If you do need help, my advise is to break your problem down into smaller chunks and we can help you out.

    Cheers, Lee.

  • Anand 2 posts 22 karma points
    May 09, 2011 @ 02:07
    Anand
    0

    hi lee,

    Thanks for reply, 

    Yes u r rite ,i did few modification to suit my work.

    My Prob: 

    1. Find all the nodes, elements & attributes of any given XML and display it in the form of Navigation tabs.

    My Apporoach:

    1. Intially i matched the node name.

    like :

    <xsl:template match="client">

    <xsl value-of select="local-name()"/>

    <xsl value-of select="node()|@*"/>

    </xsl:template>

    Above was fine , until HardCoded node names, attribute name & ele names.Problem was i when i dont have any idea abt the XML file i have

    So , i jus took XML2JSON , which was with some problem, made some modification and brought this shape.

     

    Hope i was in right move, untill the XML file was known to me.

    Aim of my app is , USER INTERFACE BASED ON XML (100% generic)

     

     

Please Sign in or register to post replies

Write your reply to:

Draft