Adding separators between vrnlist attributes (CSS based PDF)
Posted: Mon Oct 19, 2020 12:23 pm
I set the version number in the topicmeta of the map:
I need to display vrm attributes on the cover page, separated with dots, eg. "6.3.2"
But if only two attributes are set it should be "6.3"
I got this so far but of course it always adds a dot no matter if an attribute is set or not:
I don't know how to set a conditon at this point, so I could really use a hint here 
Code: Select all
<prodinfo>
<prodname>ABC </prodname>
<vrmlist>
<vrm version="6" release="2"/>
</vrmlist>
</prodinfo>
But if only two attributes are set it should be "6.3"
I got this so far but of course it always adds a dot no matter if an attribute is set or not:
Code: Select all
*[class ~= "front-page/front-page-title"]:after {
display:block;
content: "Number: " oxy_xpath('(//*[contains(@class, " map/topicmeta ")]/*[contains(@class, " topic/prodinfo ")]/*[contains(@class, " topic/vrmlist ")]/*[contains(@class, " topic/vrm")]/@version)[1]')"." oxy_xpath('(//*[contains(@class, " map/topicmeta ")]/*[contains(@class, " topic/prodinfo ")]/*[contains(@class, " topic/vrmlist ")]/*[contains(@class, " topic/vrm")]/@release)[1]') "."oxy_xpath('(//*[contains(@class, " map/topicmeta ")]/*[contains(@class, " topic/prodinfo ")]/*[contains(@class, " topic/vrmlist ")]/*[contains(@class, " topic/vrm")]/@modification)[1]');
}
