Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Splitting large Scriptella ETL files (See related posts)

The following example demonstrates how to split a large Scriptella ETL file into several parts. This example is based on a traditional XML parsed entities approach:

<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd"
[
    <!-- Declaring the first external parsed entity to include -->
    <!ENTITY part1 SYSTEM "part1.xml">
    
    <!-- Declaring the second external parsed entity to include -->
    <!ENTITY part2 SYSTEM "part2.xml">
]>
<etl>
    <connection driver="text"/>

    <!-- Including file #1 -->
    &part1;

    <script>
        content of the script
    </script>
    
    <!-- Including file #2 -->
    &part2;

</etl>

Comments on this post

ejboy posts on Nov 08, 2007 at 12:41
For another approach see http://scriptella.javaforge.com/docs/api/scriptella/driver/scriptella/package-summary.html#package_description
This driver allows calling external ETL file from Scriptella ETL file.

You need to create an account or log in to post comments to this site.


Click here to browse all 4861 code snippets

Related Posts