On Mar 12, 2010, at 5:10 AM, Hussein Shafie wrote:

> 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.

Yes, I'm defining it via a plugin configuration.

>> 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.

I may not have been clear. I have no problem with the plugin. It is doing what 
it is supposed to do. I was wondering if there is a way I can get the entity to 
not disappear in XMLMind.

This has become less important as I've discovered that Maven has a way to 
filter the HTML output of the plugin and I can substitute my version number 
there using a different syntax.

Thanks for your attention.

-K

Reply via email to