> I am encountering difficulties with broken cross references in a Word 2007
> file which was generated from DITA source using DITAC 1.1.
>
> When I look at the broken cross reference in Word 2007, the cross reference
> seems to be well formed. However, when I look at the available bookmarks in
> the document, the bookmarks seem to be truncated. Therefore, the cross
> reference is unable to link to the bookmark.
>
> After some googling, I found that Word 2007 has a 40 character limit on
> bookmarks. Were you aware of this?
No, not at all.
> If so, can your tool print a warning or
> error if the generated bookmarks are going to exceed the 40 character
> limit?
We'll modify XMLmind XSL-FO Converter (and not ditac, which is not
supposed to know about OOXML) to report such warnings. We plan to
release next major version of XMLmind XSL-FO Converter in about a month.
> Also, it appears that you are adding some additional characters to
> the generated bookmarks ("___2D___"). Given the limit on bookmark size, are
> these additions needed?
Yes, but we'll make them *as* *short* *as* *possible*:
* This is already the case with ditac 1.2. See
http://www.xmlmind.com/ditac/changes.html
* XMLmind XSL-FO Converter replaces "-" by "_2D_" and "." by "_2E_" in
bookmarks as a workaround for another ``peculiarity'' of Word. We'll
make these automatically generated strings as short as possible in next
release of XFC.