I tried to use entities from external dtd file.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"
[<!ENTITY logHome SYSTEM "log4j-entity.dtd">]
>
log4j-entity.dtd
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY logHome "/root/crm_test/">
I tried to use the entity values in attribute values like this.
<param name="File" value="&logHome;log/info.log"/>
I get this errror:
The external entity reference "&logHome;" is not permitted in an attribute value.
How can I do this?
Note:
This thing works..
<!ENTITY logHome "/root/crm_test/">