Skip to content

Commit

Permalink
Merge pull request #6 from castlec/dtdcache
Browse files Browse the repository at this point in the history
added dtd from ibatis.org and config to use during transform for thos…
  • Loading branch information
harawata authored Dec 7, 2024
2 parents ed132e3 + a59f7dd commit 1036550
Show file tree
Hide file tree
Showing 5 changed files with 767 additions and 3 deletions.
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

0 comments on commit 1036550

Please sign in to comment.