Undefined entity   in generated VS Help

Please post all new bug reports for Help & Manual 5 here.
Post Reply
peter.macej
Posts: 32
Joined: Fri Jun 13, 2008 1:58 pm
Location: Slovakia
Contact:

Undefined entity   in generated VS Help

Unread post by peter.macej »

This is a minor problem. Normally, the Copyright in Common Properties is set to:
© <%YEAR%> <%AUTHOR%>
Everything is fine with that. But when there is a space at the very end or several spaces anywhere, then you cannot compile Help2 format (VS help).
To reproduce, append one space at the end of copyright text:
"© <%YEAR%> <%AUTHOR%> "
Publish VS Help. You'll get an error for generated PROJECT_NAME.hxc file: XML syntax error: Reference to undefined entity 'nbsp'.
When you open the file, you can see that H&M inserted &nbsp; in it. It looks as follows for me:

Code: Select all

<HelpCollection DTDVersion="1.0" LangId="1033" Title="VSdocman Help" Copyright="© 2010 Helixoft&nbsp;" FileVersion="3.6.0">
Hxcomp.exe naturally fails because &nbsp; entity is not defined in XML, only in HTML.
This happens also in generated HxK file which uses XML syntax. If some of the keywords contain double spaces or space at the end then &nbsp; is added.
Peter Macej
Helixoft, VSdocman - code documentor
User avatar
Alexander Halser
EC-Software Support
Posts: 4106
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Undefined entity &nbsp; in generated VS Help

Unread post by Alexander Halser »

Thank you for posting this! This tag has indeed slipped through somewhere - it is HTML encoded instead of XML. It's the only tag in the HXS collection file that is wrong. We will fix this with the next minor update. For the time being, please remove the trailing space from the variable.
Alexander Halser
Senior Software Architect, EC Software GmbH
Post Reply