scriptella / scriptella-etl

Scriptella is an open source ETL (Extract-Transform-Load) and script execution tool written in Java
https://scriptella.org
Apache License 2.0
105 stars 46 forks source link

http://scriptella.org/dtd/etl.dtd has an error - using <include> in <script>. #29

Open hey-jude opened 7 years ago

hey-jude commented 7 years ago

I think dtd has an error.

I wrote xml and xml validator reports "include" in "script" is not allowed, but it can be executed.

I guess that the definition of "include" in "script" in "query" is omitted.

It's my sample xml.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE etl SYSTEM "http://scriptella.org/dtd/etl.dtd">
<etl>
    <description>test skeleton</description>
    <properties>
        <include href="etl.properties"/> <!--Load from external properties file-->
    </properties>
    <!-- Connection declarations -->
    <connection id="con1" driver="$driver" url="$source.url" user="$source.user" password="$source.password" classpath="$classpath"/>
    <connection id="con2" driver="$driver" url="$target.url" user="$target.user" password="$target.password" classpath="$classpath"/>

    <query connection-id="con1">
        <include href="$query_sql" />
        <script connection-id="con2">
            <include href="$insert_sql" /> <!-- error reporting point -->
        </script>
    </query>
</etl>
ejboy commented 4 years ago

Hmm. In Intellij XML editor is indeed reported as error inside Githubissues.

  • Githubissues is a development platform for aggregating issues.