Ah, some clarification then.  I wasn't aware that we did this differently so
I checked.  We brought down a local copy of the DTD because initially (and
still do) we had people working disconnected or at least without an Internet
connection.  The task would fail since it couldn't get to apache.org.  I'm
guessing everything would work fine between the two platforms if I shifted
this back to use the default URI.  From inspection of the code it looks like
the task must be using the DTDResolver.

But the still results in our other problem: you must be connected to the Net
in order to run this task (even though the task itself has no true network
dependencies).

Does anyone else see this as a problem or are we just different because we
don't want to have to be connected to build?


-----Original Message-----
From: Scott Eade [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 4:54 PM
To: Turbine Torque Users List
Subject: Re: TorqueDataModelTask and cross-platform XML


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]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to