Duplicate Title Names on Cover Page in PDF Output
Posted: Thu Jun 29, 2023 12:16 am
This displays the content correctly:
Content appears on the cover page as it should.
For example: Version 2023.5.0.7
This does not display any content on the cover page:
and fails with the following Oxygen message:
and it generates the output on the cover page, but the main book title appears twice as in:
Any ideas as to what I am doing wrong?
Code: Select all
*[class ~= "bookmap/booktitle"]:after(4) {
display: block;
content: oxy_xpath('if(//*[contains(@class, " bookmap/booknumber ")]) then concat(" Version ", //*[contains(@class, " bookmap/booknumber ")]/text()) else ""');
text-align: center;
color: black;
font-size: .5em;
font-style: italic;
}
For example: Version 2023.5.0.7
This does not display any content on the cover page:
Code: Select all
*[class ~= "bookmap/booktitle"]:after(3) {
display: block;
content: oxy_xpath('if(//*[contains(@class, " bookmap/mainbooktitle ")]) then concat(", Title ", //*[contains(@class, " bookmap/mainbooktitle ")]/text()) else ""');
color: red;
font-size: .5em;
}
Substituting string-join in place of concat works as in:[CH] jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%2024/lib/oxygen-pdf-chemistry.jar!/chemistry-default.css XPath "if(//*[contains(@class, " bookmap/mainbooktitle ")]) then concat(", Title ", //*[contains(@class, " bookmap/mainbooktitle ")]/text()) else """ failed: XPath failed due to: A sequence of more than one item is not allowed as the second argument of fn:concat() (text{Deployment Guide}, text{Deployment Guide})
Code: Select all
*[class ~= "bookmap/booktitle"]:after(3) {
display: block;
content: oxy_xpath('if(//*[contains(@class, " bookmap/mainbooktitle ")]) then string-join(//*[contains(@class, " bookmap/mainbooktitle ")]/text()) else ""');
color: red;
font-size: .5em;
}
This only appears to happen with anything in the book title tags. <mainbooktitle> and <booktitlealt> do the same thing. Using concat creates an error while string-join works, but the contents appear twice and are jammed together.Deployment GuideDeployment Guide
Any ideas as to what I am doing wrong?