We have a few different document types (books, release notes, installation notes) that require slightly different PDF formatting. So far I've had good results setting an @outputclass attribute on the <bookmap>:
Code: Select all
<bookmap outputclass="install_notes">
Code: Select all
div[outputclass~="install_notes"] > article[class ~= 'topic/topic']:first-of-type > *[class~="topic/title"]::after {
display: block;
content: "Version " oxy_xpath('//div[contains(@class, " bookmap/bookmeta ")]/div[@keyref = "Release"]//text()')
" (" oxy_xpath('//div[contains(@class, " bookmap/bookmeta ")]/div[@keyref = "Date"]//text()') ")";
}
Code: Select all
/* try to undo css/print/p-meta.css? */
*[class ~= "front-page/front-page-title"] *[class ~= "topic/title"] { -oxy-pdf-meta-title: unset !important; }
*[class ~= "front-page/front-page"] *[class ~= "bookmap/booktitle"] > *[class ~= "bookmap/mainbooktitle"] { -oxy-pdf-meta-title: unset !important; }
div[class~="bookmap"][outputclass~="A"] {
-oxy-pdf-meta-title: "A1";
-oxy-pdf-meta-author: "A2";
-oxy-pdf-meta-description: "A3";
}
div[class~="bookmap"][outputclass~="B"] {
-oxy-pdf-meta-title: "B1";
-oxy-pdf-meta-author: "B2";
-oxy-pdf-meta-description: "B3";
}
div[class~="bookmap"]:not([outputclass]) {
-oxy-pdf-meta-title: "1";
-oxy-pdf-meta-author: "2";
-oxy-pdf-meta-description: "3";
}
Has anyone else run into this before? Testcase attached: