Kathryn Huxtable wrote:
> I'm using XML Editor Professional Edition, version 4.4.0 on Mac OS X 10.6.2. 
> I have a DocBook 4.5 document which includes the entity reference 
> &projectVersion;, which is normally supplied by the Maven docbkx plugin with 
> my current project version number.
> 
> There is no definition in my XML for this entity.
> 

Therefore the entity is defined in the DTD external subset.



> XML Editor replaces it with an empty string where it occurs.
> 
> Is there something I can do about this? I thought that entities were 
> preserved, even if undefined.
> 

If the entity was undefined, it would not be possible to open your
document. You would get a parse error.

My guess is:

[1] Entity projectVersion is defined as an *empty* *string* in the DTD
external subset.

[2] The authors of this DTD expect you to give it an actual value it in
the DTD internal subset (that is, in your XML):

Something like that:

<!DOCTYPE XXX PUBLIC "Maven YYY" "MavenZZZ.dtd" [
<!ENTITY projectVersion "1.0.0">
]>




--> But all these are just guesses.

I'm really sorry but we, XMLmind, cannot really help you. We know
nothing at all about the Maven docbkx plug-in.

You should really contact the author of this plug-in.



--> About XMLmind XML Editor and entities: see
http://www.xmlmind.com/xmleditor/limitations.html




Reply via email to