Home Forums DITA and XMetaL Discussion displaying date output is generated Reply To: displaying date output is generated

Derek Read

Reply to: displaying date output is generated

There's not quite enough detail here to give you an explicit answer but one way to do this might be to define a new parameter:



Then insert this where you want to insert it using $documentCreatedDate. So, for example, if you wanted to have this appear in even (page numbered) footers inside the document body you could redefine the other parameters that are defined for that purpose:

    1 1 1

If you were to put all of the code above into %appdata%SoftQuadXMetaL SharedDITA_OTdemoxmfoCustomizationfoxslcustom.xsl (which is where I would suggest you put any overrides) then you should see the value for the date attribute appear on evenly numbered pages inside the document “body” (as opposed to evenly numbered pages, or the TOC, Index, etc).

Note that as written above the XPath is specific to DITA Maps and is not “specialization savvy”.

If you want the value for this element's date attribute to show up on the cover page you could modify the xm_titlepage.xsl directly (or perhaps ideally, do an override like above, but instead to in which case you'd need to duplicate the entire template and then insert your new code into it).

You would be inserting something like the following into that template where you want the new content to appear (possibly after the “for-each” that inserts the subtitle):


I've reused xsl:use-attribute-sets="xm.titlepage.subtitle" for the styling here so that a new one doesn't need to be made up. You could create your own or use another one that already exists if you need this text to be styled differently.

Note that this XPath is specialization-savvy.