Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dtd from ibatis.org and config to use during transform for thos… #6

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@
<fileset dir="destination" includes="*.xml"/>
</delete>
<!-- xslt convert sqlMaps 2 to mybatis 3 -->
<xslt basedir="source" style="migrate.xslt" includes="*.xml" destdir="destination" extension=".xml"/>
<xslt basedir="source" style="migrate.xslt" includes="*.xml" destdir="destination" extension=".xml">
<xmlcatalog>
<dtd publicId="-//ibatis.apache.org//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
<dtd publicId="-//www.ibatis.com//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
<dtd publicId="-//iBATIS.com//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
<dtd publicId="-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-config-2.dtd"/>
<dtd publicId="-//www.ibatis.com//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-2.dtd"/>
<dtd publicId="-//iBATIS.com//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-config-2.dtd"/>
</xmlcatalog>

</xslt>
<!-- replace #id:NUMERIC# to #id,jdbcType=NUMERIC# etc. -->
<replace dir="destination" includes="*.xml" token=":NUMERIC#" value=",jdbcType=NUMERIC#" encoding="UTF8"/>
<replace dir="destination" includes="*.xml" token=":TIMESTAMP#" value=",jdbcType=TIMESTAMP#" encoding="UTF8"/>
Expand All @@ -49,8 +59,8 @@
<attribute name="http://apache.org/xml/features/validation/schema" value="false" />
<attribute name="http://xml.org/sax/features/namespaces" value="false" />
<fileset dir="destination" includes="*.xml" />
<dtd publicId="-//mybatis.org//DTD SQL Map Config 3.0//EN" location="mybatis-3-config.dtd" />
<dtd publicId="-//mybatis.org//DTD Mapper 3.0//EN" location="mybatis-3-mapper.dtd" />
<dtd publicId="-//mybatis.org//DTD SQL Map Config 3.0//EN" location="dtd/mybatis-3-config.dtd" />
<dtd publicId="-//mybatis.org//DTD Mapper 3.0//EN" location="dtd/mybatis-3-mapper.dtd" />
</xmlvalidate>

</target>
Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading