You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Brian Sterner <br...@yahoo.com> on 2008/01/12 23:11:50 UTC

Relative URI for DTD

I cannot get a relative uri to work in Dao.xml for the dao-2.dtd.  I've
tried placing both the xml and the dtd in the same directory and
using...

<!DOCTYPE daoConfig SYSTEM "file://dao-2.dtd">

To
no avail.  Is it possible to use a relative uri with the ibatis config
files?  Can I use the SqlMapClasspathEntityResolver class in some way
to accomplish this?

Thanks - Brian


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: Relative URI for DTD

Posted by Richard Yee <ry...@cruzio.com>.
Brian,
If you use the non-relative URL (ie http://ibatis.apache.org.....) the 
parser will get it from the jar file. I suppose you are using the older 
version of iBATIS that still included the DAO framework. You might also 
consider using the DAO template from Spring.

-Richard


Brian Sterner wrote:
> I cannot get a relative uri to work in Dao.xml for the dao-2.dtd.  
> I've tried placing both the xml and the dtd in the same directory and 
> using...
>
> <!DOCTYPE daoConfig SYSTEM "file://dao-2.dtd">
>
> To no avail.  Is it possible to use a relative uri with the ibatis 
> config files?  Can I use the SqlMapClasspathEntityResolver class in 
> some way to accomplish this?
>
> Thanks - Brian
>
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage. 
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>