I have defined a general entity and would like to use it in an external entity, as well as later in the file. I am referencing the projetRoot entity from the URI section of the includeXMLFile entity and the projetRoot entity doesn't get replaced. Is there a way to do this? Thank you.
<!DOCTYPE project
[
<!ENTITY projectRoot ".">
<!ENTITY includeXMLFile SYSTEM "file:&projectRoot;/includeFile.xml">
]
>
<project name="test">
&includeXMLFile;
...
</project>
<!DOCTYPE project
[
<!ENTITY projectRoot ".">
<!ENTITY includeXMLFile SYSTEM "file:&projectRoot;/includeFile.xml">
]
>
<project name="test">
&includeXMLFile;
...
</project>