[prog] XML/XSLT/perl strangeness
Kathryn Andersen
kat_lists at katspace.com
Thu Dec 12 09:12:38 EST 2002
On Wed, Dec 11, 2002 at 01:29:27AM -0800, Laurel Fan wrote:
> On Tue, Dec 10, 2002 at 08:08:21AM +1100, Kathryn Andersen wrote:
> > Of course, I'm making an assumption that it's this script which is doing
> > it; since I can't track what it's doing or what it's connecting to
> > (don't know how), yet, it is a coincidence of timing not to be ignored,
> > considering that I'm not doing anything else which downloads things at
> > the same time as this.
>
> I don't know anything about your specific problem, but you can verify
> that the script is connecting somewhere and figure out where it's
> connecting to using netstat or lsof.
>
> On linux, netstat -p shows all open connections and the processes they
> belong to.
>
[snip]
> Maybe finding out where it is connecting to will help you debug.
Thanks! That did help.
It seems, for whatever wierd reason, that because the stylesheet in
question was reading in a local document with the document() function,
because the filename was just plain "myfile", the silly program went and
connected to www.w3.org trying to find the wretched file, at least I
assume that that was what it was trying to do, considering that the
connection was to web4.w3.org, and that, after I put some debugging
messages in, the big delay (while it was connecting and downloading
Something) occurred in the spot where the document(file) was being read.
The reason why I think it was trying to find the document, rather than
just verifying it, is because, as soon as I put a "./" in front of the
filename, thus establishing *beyond all doubt* that it was a relative path
and not a URI, then the processing went through in no time.
What an annoying implementation of document()!
Still, I'm glad I've solved that problem. Thanks.
Kathryn Andersen
-=-=-=-=-=-=-=-=-
Avon: You mean Vila spouted nonsense.
Vila: I resent that!
Avon: Oh, I wouldn't if I were you. Orac is saying that a logical,
rational intelligence is no match for yours.
(Blake's 7: Ultraworld [C10])
--
_--_|\ | Kathryn Andersen <kat at katspace.com> <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe
More information about the Programming
mailing list