Hi all,
I am having trouble getting our structured app/template to apply master pages properly. We're on Frame 11 using an XDocbook, customized app.
Here is the configuration:
1. Reference page structMasterPageMap:
- Maps element E:BookInfo to the "Title Page" master page.
- Maps element E:PrefaceInfo to the "Frontmatter" master page.
2. Frame XML document content:
<bookinfo>
<title>
<edition>
<copyright>
</bookinfo>
As you can see, this doc does not yet have a PrefaceInfo element, although one is allowed by the DTD. So the obvious solution is to either: 1) add one (wrap the <copyright> element in a <prefaceinfo> element as allowed); or 2) add an "E:Copyright" mapping to the ref page. Yet, neither of these work. Here's what occurs:
Solution A: On the Ref page, add a mapping from E:Copyright to the "Frontmatter" master page:
1. Open the document in Frame and note that the master page Title Page is applied, but the master page Frontmatter is not, as expected.
2. On the ref page, add the E:Copyright mapping to apply the Frontmatter master page.
3. Reapply Master Pages, and the Frontmatter page is applied, as expected. All is good....except. When you close and then re-open the document, no master pages are applied, not even the Title Page which had previous worked. Huh, what?
4. Remove the E:Copyright mapping from the ref page, reapply Master Pages, and the Title Page master page is again applied.
Note: This behavior is reproducible whether I replace the E:PrefaceInfo with E:Copyright on the reference page, or retain both. I can also reproduce this by using the paragraph tag instead, of the element, i.e. P:FrontmatterCopyright.
Solution B: In the document, add a <prefaceinfo> element:
1. Open the document in Frame and note that the Title Page master page is applied while the Frontmatter is not, which is expected.
2. Wrap the <copyright> element in <prefaceinfo>.
3. Reapply Master Pages. Nothing happens, i.e. the Frontmatter master page is not applied.
4. Save, close, and reopen the document. The Title page is applied, but the Frontmatter is not.
Yes, I have checked and rechecked that the actual master page names match those entered into the reference pages, including case. :-)
Possible conflicts/factors?
1. Could the structure of the document (as allowed by the DTD) affect master page application? The element <copyright> can exist both inside a <prefaceinfo> and independently under <bookinfo>. This doesn't seem likely, especially because as a test, I saved the doc as .fm, discarded the structure, updated the ref page to use para tags instead -- and still the master pages are not applied correctly.
2. Pagination can affect this -- at first we had Format>Page Layout>Pagination set to "Single Sided" so I thought that was why the left-hand Frontmatter was being ignored. But I have ruled that out; the template is now double sided, and Frontmatter is a left page.
I am stumped! Thanks in advance for any ideas.
- Shelley
Shelley Hoose
Sr. Docs Developer, Rogue Wave Software