openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Fix #422: Add "last modified" line on cover page #423

Open tomschr opened 3 years ago

tomschr commented 3 years ago

This is a proof-of-concept and a draft ATM. It contains the following changes:

Currently, the parameter $last.modified is used "as-is"; it is included in the respective line no matter if it's a date or not.

However, when a date is passed, it is currently inconsistent with the publication date. This looks like this (English):

Publication Date: October 29, 2020 Last modified: 2020-10-01

That first date is created from this line:

<date><?dbtimestamp format="B d, Y"?></date>

In other words, to make both dates consistent, the last modified date needs to be transformed into the format of the PI inside <date>.

We need to decide if we want a minimal solution first and improve it later, or, if we want to make it more consistent.