Hello,

        We solved the problem of resolving DTD file path using a class
which implements EntityResolver 
        <!DOCTYPE toto SYSTEM "/castorPath/toto.dtd" .

        But now, we want to do the same thing (dynamicaly resolving the
path) for ENTITY,
        But it doesn't seem to work while using Castor XML, but is ok
while using DOM parser.

        Is it a known problem, or is there a solution ?



        <!DOCTYPE toto SYSTEM "/castorPath/toto.dtd" [
                <!ENTITY toto SYSTEM "/castorPath/toto.xml"
                <!ENTITY tata SYSTEM "/castorPath/tata.xml"]
        ]
        >

        ...
        &toto;
        &tata ;
        ..

        In the SAX documentation, we have found this :

        >>>>>>>>>>>>>>>>>>>>>>>>>>>>
        public interface EntityResolver

        Basic interface for resolving entities. 

        If a SAX application needs to implement customized handling for
external entities, it must implement this interface and register an
instance with the SAX driver using the setEntityResolver method.

        The XML reader will then allow the application to intercept any
external entities (including the external DTD subset and external
parameter entities, if any) before including them.
        >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

        Does the word "entities" covers DOCTYPE AND ENTITY ?

        Has some body an idea ?

        Sylvie.
        ___________________





**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to