From d1b8a80f3b8d573c78565b28dafd3c5667d51921 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Wed, 12 Nov 2003 17:28:07 +0000 Subject: add doc for using current date and time, and create an FAQ referencing it git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197008 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/faq.xml | 6 ++++++ src/documentation/content/xdocs/fo.xml | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index 86a6b046f..38f081e36 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -972,6 +972,12 @@ Can I control this?

+ + (XSLT) How can I use the current date and time in my document? + +

See Current Date and Time.

+
+
General suggestions. How to solve problems. diff --git a/src/documentation/content/xdocs/fo.xml b/src/documentation/content/xdocs/fo.xml index 2b563da0b..583228293 100644 --- a/src/documentation/content/xdocs/fo.xml +++ b/src/documentation/content/xdocs/fo.xml @@ -82,6 +82,27 @@ If you view their output with something not aware of the encoding, like Notepad

+
+ XSLT Issues +
+ Current Date and Time +

XSL-FO does not currently have a function for retrieving the current date and time. +However, in some cases, XSLT can be used to place the current date and time into the XSL-FO document as it is generated.

+

One possibility is to use the exslt date and time extension.

+

Another possibility is to use java or javascript (or perhaps some other language). +Here is an example, using java, that works with Xalan. First, create the appropriate namespace:

+ +

Next, use the java language to retrieve and format the current date and time. +Here is an example template:

+ + + ]]> +
+
XSL-FO Issues
-- cgit v1.2.3