W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2008

AW: Can I get current date and time XSL-FO??How???

From: Huditsch, Roman (LNG-VIE) <Roman.Huditsch@lexisnexis.at>
Date: Fri, 4 Apr 2008 06:44:39 +0200
Message-ID: <AB4D914EE3A3254CA8F439925297E4C603A6403C@LNGVIEEXCP01VB.legal.regn.net>
To: <emanuele.picciani1@virgilio.it>, <www-xsl-fo@w3.org>

According to your stylesheet snippet you are fortunately using XSLT 2.0, so you can have a look at the function current-date() and current-dateTime ().
Putting an <xsl:value-of select="current-dat()"/> where you want to output the date should get you a step further.
If you need to change the date's format, have a look at format-date().
Hope this helps!

Best regards,

Sent from my BlackBerry Wireless Device

----- Originalnachricht -----
Von: www-xsl-fo-request@w3.org <www-xsl-fo-request@w3.org>
An: www-xsl-fo@w3.org <www-xsl-fo@w3.org>
Gesendet: Thu Apr 03 16:38:01 2008
Betreff: Can I get current date and time XSL-FO??How???

Hi dear Nabble staff,
....... i have a problem very difficult to solve for me....
.....I have Oracle APEX Web developer to make a report in XSL-FO and to
translate it into PDF and i want to customize reports made by APEX.

I tried to get current date and/or time in XSL-FO file but I can't to find a
solution for this....

I tried to create customized functions made with Javascript, msxsl code and
with XSQL but nothing....

this is my XSL-FO code......tell me what i should write and

<?xml version = '1.0' encoding = 'utf-8'?>
<xsl:stylesheet version="2.0" 
<xsl:output method="html" />

   <xsl:attribute-set name="page-number">
      <xsl:attribute name="height">13.872pt</xsl:attribute>
   <xsl:attribute-set name="header-font">


   <xsl:template match="/">
            <fo:simple-page-master master-name="master0"
margin-left="66.6pt" margin-right="66.6pt" page-height="#PAGE_HEIGHT#pt"
page-width="#PAGE_WIDTH#pt" margin-top="36.0pt" margin-bottom="36.0pt">
   Page  <fo:page-number/>
<fo:block text-align="right">
<fo:block text-align="center">
STIPA bla bla bla bla bla bla 
<fo:block text-align="center">
STIPA bla bla bla bla bla bla 

View this message in context: http://www.nabble.com/Can-I-get-current-date-and-time-XSL-FO--How----tp16467521p16467521.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Friday, 4 April 2008 04:45:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:08 UTC