[xml] Problems with xinclude



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've got xinclude working almost perfectly. There is only one more hitch:

I have an xml file which is symbolically linked in a few directories. It
refers to a file which may or may not be in the directory with it. If
the file is there, I want it included. If not, I want it to do nothing
silently.

My approach is to do this:
<blah><xi:include "file1.xml"><xi:fallback /></xi:include></blah>

If 'file1.xml' is present, it does in fact get included. And I had an
error I mentioned in an earlier email where the fallback node apparently
wasn't the first child of an include. The fallback error is gone now (by
making the fallback sit right beside the opening include), but now I get
this:

I/O warning : failed to load external entity "file1.xml"

when I:

xmllint --xinclude file0.xml

This is being used by a mod_python script, and I get the same warning
showing up in my error logs.

Shouldn't the presence of the fallback node preclude issuing the warning?

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

iD8DBQFAQ74xoaQ1/feGlJoRAj5nAJwIfy7ylcvHCD5UIiy6FJHziWt99QCfcANX
ruMc3ByZICC31clX5syU6EE=
=8NRY
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]