From 39d12b79fea8febf5d8ec7fa4c153b5590823917 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Mon, 21 Oct 2013 06:58:03 +0000 Subject: [PATCH] Extended date template in mode opf.metadata If a PI dbtimestamp is available, call datetime.format(date, 'Y-m-d'), otherwise use the normalized string content --- xsl/epub/docbook.xsl | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/xsl/epub/docbook.xsl b/xsl/epub/docbook.xsl index 3dfa237d1..ee2df6dcd 100644 --- a/xsl/epub/docbook.xsl +++ b/xsl/epub/docbook.xsl @@ -9,11 +9,12 @@ xmlns:opf="http://www.idpf.org/2007/opf" xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory" xmlns:str="http://exslt.org/strings" + xmlns:date="http://exslt.org/dates-and-times" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtext="xalan://com.nwalsh.xalan.Text" - extension-element-prefixes="stext xtext" - exclude-result-prefixes="exsl db dc h ncx ng opf stext str xtext" + extension-element-prefixes="date stext xtext" + exclude-result-prefixes="exsl date db dc h ncx ng opf stext str xtext" version="1.0"> @@ -602,7 +603,28 @@ - + + + + + + + + + + + + + + + + Y-m-d + + + + + + -- 2.40.0