Skip to content

Commit 1036550

Browse files
authored
Merge pull request #6 from castlec/dtdcache
added dtd from ibatis.org and config to use during transform for thos…
2 parents ed132e3 + a59f7dd commit 1036550

File tree

5 files changed

+767
-3
lines changed

5 files changed

+767
-3
lines changed

Diff for: build.xml

+13-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@
2323
<fileset dir="destination" includes="*.xml"/>
2424
</delete>
2525
<!-- xslt convert sqlMaps 2 to mybatis 3 -->
26-
<xslt basedir="source" style="migrate.xslt" includes="*.xml" destdir="destination" extension=".xml"/>
26+
<xslt basedir="source" style="migrate.xslt" includes="*.xml" destdir="destination" extension=".xml">
27+
<xmlcatalog>
28+
<dtd publicId="-//ibatis.apache.org//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
29+
<dtd publicId="-//www.ibatis.com//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
30+
<dtd publicId="-//iBATIS.com//DTD SQL Map 2.0//EN" location="dtd/sql-map-2.dtd"/>
31+
<dtd publicId="-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-config-2.dtd"/>
32+
<dtd publicId="-//www.ibatis.com//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-2.dtd"/>
33+
<dtd publicId="-//iBATIS.com//DTD SQL Map Config 2.0//EN" location="dtd/sql-map-config-2.dtd"/>
34+
</xmlcatalog>
35+
36+
</xslt>
2737
<!-- replace #id:NUMERIC# to #id,jdbcType=NUMERIC# etc. -->
2838
<replace dir="destination" includes="*.xml" token=":NUMERIC#" value=",jdbcType=NUMERIC#" encoding="UTF8"/>
2939
<replace dir="destination" includes="*.xml" token=":TIMESTAMP#" value=",jdbcType=TIMESTAMP#" encoding="UTF8"/>
@@ -49,8 +59,8 @@
4959
<attribute name="http://apache.org/xml/features/validation/schema" value="false" />
5060
<attribute name="http://xml.org/sax/features/namespaces" value="false" />
5161
<fileset dir="destination" includes="*.xml" />
52-
<dtd publicId="-//mybatis.org//DTD SQL Map Config 3.0//EN" location="mybatis-3-config.dtd" />
53-
<dtd publicId="-//mybatis.org//DTD Mapper 3.0//EN" location="mybatis-3-mapper.dtd" />
62+
<dtd publicId="-//mybatis.org//DTD SQL Map Config 3.0//EN" location="dtd/mybatis-3-config.dtd" />
63+
<dtd publicId="-//mybatis.org//DTD Mapper 3.0//EN" location="dtd/mybatis-3-mapper.dtd" />
5464
</xmlvalidate>
5565

5666
</target>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)