Hi Mirko,
Can't you use an EntityResolver to map this external entity to the version
you want? If you want the entity to be empty, you return an InputSource
that points to an empty stream. If you want it to be a particular version
of the entity, you return an InputSource that points to the appropriate
stream.
Dave
"Mirko Braun"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: AW: External Entities
03/11/2003 04:08
AM
Please respond
to xerces-c-dev
Hi Paul,
thanks for your answer. But it does not solve my problem because
i want to have only one version of this DTD. The extension test.ent
is a company specific structure. Other companies who uses the DTD too,
should
not be aware of this extension. Consequently i had the idea to put this
structure
in a separate file and use an optional external entity. In this way
maybe it is possible to omit the extension if other companies want to use
the DTD
and no modification of the DTD is necessary.
Despite of serveral tries to realize it, i did not manage to do it. I'm not
sure if it is possible.
Do you or anybody else know another possibility?
Mirko
-----Urspr�ngliche Nachricht-----
Von: Colin Paul Adams [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 11. M�rz 2003 10:00
An: [EMAIL PROTECTED]
Betreff: Re: External Entities
>>>>> "Mirko" == Mirko Braun <[EMAIL PROTECTED]> writes:
Mirko> I have a XML-problem. Does anybody know, if there is a
Mirko> possibility to denote an external entity like <!ENTITY %
Mirko> Test SYSTEM "Test.ent"> as optional? Test.ent is an
Mirko> extension of my DTD, which is not used by all users. A few
Mirko> users use it, others do not. Consequently the Test.ent can
Mirko> be present or not.
Those users who want it can declare it in the internal subset, so
leave it out of the DTD.
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]