cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian G. Haas" <f.g.h...@gmx.net>
Subject Instructing TraxTransformer to do catalog resolution with document() function
Date Sat, 13 Sep 2003 15:12:19 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

When accessing a remote document from an XSLT stylesheet using the XPath 
document() function, my transformation process slows down considerably if my 
Internet connection is down. This is due to the fact that the document 
referenced contains a !DOCTYPE declaration whose system ID points to a 
resource on the web. The Transformer apparently attempts to contact this 
resource in order to do validation and entity resolution for the remote 
document, then eventually gives up with a java.net.UnknownHostException. This 
does not cause the transformation process to fail, it only becomes 
disproportionately protracted. The referenced DTD, however, is available to 
the catalog resolver and its local copy is in fact correctly used elsewhere 
in the pipeline.

My problem is, therefore: while the Generator used in the pipeline in question 
correctly does catalog resolution and uses the local copy of the DTD 
referenced as expected, the transformer fails to do so when accessing a 
document via document(). Is there any way to intruct the Transformer to use a 
catalog with document() calls?

Thanks in advance for any hints or clues.

Best regards,
Florian

- -- 
Florian G. Haas <f.g.haas@gmx.net>

GnuPG key ID: 0x46D00BE3
Key fingerprint: 18B4 3E7B 191E F534 254A  1F7C 816D 950B 46D0 0BE3

My GnuPG key is available from the public PGP key server at
pgp.mit.edu (and various other key servers).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/YzPagW2VC0bQC+MRAq5rAKDJRJoCSf3VWRlfTzYqks2QPeuJpACfWfpb
WZXYGfPDHeAtTBcpHxVaq4I=
=x9JC
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message