Customizing the note element
Posted: Fri Jul 14, 2023 11:54 am
Hi
I want to customize the output of notes in the PDF transformation with css. There should be no image and no linebreak after the bold "Note: "
Sounds like a simple task fulfilled by:
and then likewise for the different subtypes of notes.
But this little code sniplet in my customized css breaks up the whole transformation. It stopps with an error
In the fo output this not even refers to a note but a hazardstatement.
Any idea whats wrong there?
I'm using Oxygen 25.0 and DITA-OT version 3.7.3
Regards
Jörn
I want to customize the output of notes in the PDF transformation with css. There should be no image and no linebreak after the bold "Note: "
Sounds like a simple task fulfilled by:
Code: Select all
*[class ~= "topic/note"]:lang(en):before{
font-weight: bold;
content: "Note: ";
}
But this little code sniplet in my customized css breaks up the whole transformation. It stopps with an error
Code: Select all
Error on line 183 column 73 of stage1.xml.pp:
[java] SXCH0003 org.apache.fop.fo.ValidationException: "fo:table-row" is not a valid child of
[java] "fo:table"! (Siehe Position 183:73). Caused by org.apache.fop.fo.ValidationException:
[java] file:.../temp/pdf-css-html5/oxygen_dita_temp/stage1.xml.pp:183:73: "fo:table-row" is not a valid child of "fo:table"! (See position 183:73)
Any idea whats wrong there?
I'm using Oxygen 25.0 and DITA-OT version 3.7.3
Regards
Jörn