Copy link to clipboard
Copied
I'm running version 9.0p250 on an XP machine. Here's the problem...
A chapter in my book has 40-50 text insets that are XML examples. Each example has a version number that I have to update when a new version is release. To do the update quickly I created a dummy book containing all the text inset files (each example is its own file). I open the dummy book and do a find/replace on the version number and save the files. All that works fine. The problem is that when I reopen the real book, I get broke x-refs in two chapters. The broken x-refs are all to heading 1s or 2 and have nothing to do with the updated insets, which come in fine. It is alway the same group of x-refs and it's always after I fix the insets, never during normal updates/edits of the book, including large feature additions.
It's not a huge problem, but I'm getting tired of spending 15 minutes every release fixing them. any ideas what could be causing this bizzare problem?
Copy link to clipboard
Copied
WordDog,
can you please describe how precisely do you insert the text insets. I assume you are working format-based and not XML-structured.
I have seen documents with a lot of text insets, and they have a special, minimum size paragraph format defined which they use
* as the first paragraph inside every text inset
* as the last paragraph inside every text inset
* as the paragraph in the container document into which the text inset is imported
Each cross-reference requires that a cross-ref marker is the first thing in the paragraph you want to reference. You have to avoid anything that might change, move or remove that marker. You can use the Find dialog to locate markers of type "Cross-Ref" and inspect their content before and after the update process you mention.
- Michael Müller-Hillebrand
Copy link to clipboard
Copied
To import the inset I simply do a File>Import>File and select the file. I do retain the original format of the imported file. Nothing special there. The paragraph tags involved are an Example tag, which is just the word "Example:" following by a title and then the text inset is imported under it as shown below.
Also, as I said, none of the x-refs go to either the insets themselves or the Example tag. They do often go to the next tag after the inset, which is typically a Heading2, but I have multiple x-refs going to the Heading2s and only a few of them break...say 12-15 out of 50-60. In the screenshot below, you can see the x-ref marker the “Capture Transactions” heading. It represents approx. 8 x-refs coming from both within and outside the particular chapter. When I rebuild the book after updating the insets, 2 of the refs break, but the others are fine.
Copy link to clipboard
Copied
Hi WordDog,
Your screenshot did not appear in your post. Please use the information in the last paragraph of my previous post to analyze what’s going wrong in detail.
- Michael