Changing PDF cover page based on a custom parameter
Posted: Fri Apr 29, 2022 7:22 am
Hi,
Using a PDF publishing template, I can add some content to a cover page as explained on this page
https://www.oxygenxml.com/doc/versions/ ... _page.html
with some css like *[class ~= "front-page/front-page-title"]:after(1)
But what I would like to do is add this content only if a custom parameter is set.
I tried a few match pattern inside my merged2html5Extension.xsl
<extension id="com.oxygenxml.pdf.css.xsl.merged2html5" file="xslt/merged2html5Extension.xsl"/>
Example: <xsl:template match="oxy:*[contains(@class, ' front-page/front-page-title ')]">
But I cannot figure out a pattern that works...
Is it possible to change the cover page content via a template or any other way based on a custom parameter?
This custom parameter is working fine within my merged2html5Extension.xsl file on some DITA elements.
Any help is appreciated.
Regards,
Raymond
Using a PDF publishing template, I can add some content to a cover page as explained on this page
https://www.oxygenxml.com/doc/versions/ ... _page.html
with some css like *[class ~= "front-page/front-page-title"]:after(1)
But what I would like to do is add this content only if a custom parameter is set.
I tried a few match pattern inside my merged2html5Extension.xsl
<extension id="com.oxygenxml.pdf.css.xsl.merged2html5" file="xslt/merged2html5Extension.xsl"/>
Example: <xsl:template match="oxy:*[contains(@class, ' front-page/front-page-title ')]">
But I cannot figure out a pattern that works...
Is it possible to change the cover page content via a template or any other way based on a custom parameter?
This custom parameter is working fine within my merged2html5Extension.xsl file on some DITA elements.
Any help is appreciated.
Regards,
Raymond