I have changed my model to use the exactly correct doctype/system/public id, as
I originally had (when this whole problem started). So it passes the
SAVAdapter test, but for some reason it DOES NOT seem to be calling the entity
resolver to find the DTD/ directory to find it locally. I'm going to stick
some printlns in the entity resolver and see what/when it is getting called.
When I specify the external SYSTEM ID to be the correct one (according to
SAVAdapter), I can see my modem light up when I run the program so I know it's
looking there and not locally, and it finds an HTML page, not a DTD.
I'll see what the println's in the entity resolver reveal :)
So now I think I understand that no matter what I put in the SYSTEM ID (so long
as it is one of the types SAVAdapter likes), it is supposed to search locally
first, right?
Mike
Justin Couch wrote:
Michael P. McCutcheon wrote:
I guess I'm just confused at how on your installation, it searches
DTD/x3d-30.dtd defined in the entity resolver.. On my installation, it
searches for the www.web3d.org DTD's specified in SAVAdapter.
SAVAdapter does no searching at all. All it does is confirm that the
string is correct according to "the specification". The searching is
done by the entity resolver code to acquire the DTD file and hand it
back to the parser. By the time it gets to the startDTD call the DTD
file has already been located on disk and fed to the parser. The SAX
spec says that startDTD won't be called until then. BUUUT... the reason
you get this exception is that your System ID is wrong. If you are still
using the same test file as the one you posted to the list before, then
it will never work in the current file. Your content is wrong, not the
code. You need to fix your content first before blaming the code. Both
the PUBLIC ID string _and_ the SYSTEM ID string are wrong in that example.
Also, one thing to note is that there are no examples in the examples
directory :) There is only a single .wrl, no X3D samples at all,
either in the .tar
download or the CVS 'get' that I did.
Hmmm... CVS.. stuff... look in the parsetest/xml directory for a
collection of files. I thought we'd copied a bunch of those over into
the examples dir for the release code, but it looks like we haven't. I
think that's probably worth putting together a small zip file for
everyone to play with.
--
Justin Couch http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".