I'm a little confused?
The default doctype line in schema files refers to:
http://jakarta.apache.org/turbine/dtd/database.dtd
...which DTDResolver maps to the local file system in a platform independent
way.
Would I be correct to say that the problem is that TorqueDataModelTask.java
is not using DTDResolver when it parses the schema? I.e. If it used the
existing DTDResolver you would no longer have to change the doctype
declaration in your schema file?
Cheers,
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
> From: Walt Armour <[EMAIL PROTECTED]>
>
> I'm not changing the DTDs for my schema.
>
> XmlToAppData uses the SAX parser to parse the XML. The SAX parser requires
> (based on the errors I get) an absolute URI (not relative) before it will
> parse the XML. Without using a network-aware scheme (e.g. http://) I can
> find no way to specify an absolute URI that works for both Windows and Linux
> (because file system paths are specified completely differently).
>
> On Windows I need a DOCTYPE entry like this (using an absolute URI):
> <!DOCTYPE root SYSTEM "file:///Q:/foo/bar/database.dtd">
>
> On Linux I need one like this:
> <!DOCTYPE root SYSTEM "file:///dev/foo/bar/database.dtd">
>
> I would prefer a relative one for both, like this (which should work since
> the XML is in the same directory):
> <!DOCTYPE root SYSTEM "database.dtd">
>
> But SAX won't digest the relative one.
>
> One suggestion was to create my own EntityResolver (akin to DTDResolver)
> that would build the path properly depending on the OS it was running on.
> While looking into that possibility I hit the snag I mention below. To be
> honest, on further inspection, I'm not sure if even this will solve my
> problem.
>
> Any suggestions, hints, clues, etc. will be greatly appreciated.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>