problem line break front-page dita css pdf
Posted: Thu Sep 14, 2023 2:47 pm
Hello,
I have a problem with line-break. Here's the code that generates title-page:
/* this fragment formats the title taken from ditamap name*/
*[class ~= "front-page/front-page-title"] {
position: absolute;
left: 30px;
top: 470px;
color: black;
font-size: 24pt;
width: 1000px;
}
/* this fragment formats the addition line defined in scenario */
*[class ~= "front-page/front-page-title"]:after(1) {
content: oxy_xpath('/*/@*[local-name()="doc-version"][1]');
}
/* this fragment formats yet another addition line defined in scenario */
*[class ~= "front-page/front-page-title"]:after(2) {
content: oxy_xpath('/*/@*[local-name()="soft-version"][1]');
}
/* this fragment formats picture defined in scenario */
*[class ~= "front-page/front-page-title"]:after(3) { /* this fragment formats the picture defined in scenario */
width: 620px;
content: url(oxy_xpath('/*/@*[local-name()="front-page-product"][1]')); /* źródło obrazka definiowalne w Transformation Scenario w Parameters */
display: block;
background-repeat: no-repeat;
background-size: 100%;
}
The problem is that the additional line defined in: *[class ~= "front-page/front-page-title"]:after(2) is rendered in the same line:
I have a problem with line-break. Here's the code that generates title-page:
/* this fragment formats the title taken from ditamap name*/
*[class ~= "front-page/front-page-title"] {
position: absolute;
left: 30px;
top: 470px;
color: black;
font-size: 24pt;
width: 1000px;
}
/* this fragment formats the addition line defined in scenario */
*[class ~= "front-page/front-page-title"]:after(1) {
content: oxy_xpath('/*/@*[local-name()="doc-version"][1]');
}
/* this fragment formats yet another addition line defined in scenario */
*[class ~= "front-page/front-page-title"]:after(2) {
content: oxy_xpath('/*/@*[local-name()="soft-version"][1]');
}
/* this fragment formats picture defined in scenario */
*[class ~= "front-page/front-page-title"]:after(3) { /* this fragment formats the picture defined in scenario */
width: 620px;
content: url(oxy_xpath('/*/@*[local-name()="front-page-product"][1]')); /* źródło obrazka definiowalne w Transformation Scenario w Parameters */
display: block;
background-repeat: no-repeat;
background-size: 100%;
}
The problem is that the additional line defined in: *[class ~= "front-page/front-page-title"]:after(2) is rendered in the same line: