xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandrine Pilon" <sandrine.pi...@mcc-soft.com>
Subject RE: Current date integration
Date Thu, 02 May 2002 09:38:10 GMT
Version "1.0" stylesheet is included but it's a copy/paste problem .
Also fo element are included but I wanted to be concise.
I still have error 'null'.
Thanks
Sandrine

-----Message d'origine-----
De : Oleg Tkachenko [mailto:olegt@multiconn.com]
Envoyé : jeudi 2 mai 2002 12:13
À : fop-user@xml.apache.org
Objet : Re: Current date integration



Sandrine Pilon wrote:

> ******************************************************
> [INFO]: FOP 0.20.3
> file:///D:/Program Files/FOP/fop-0.20.3/MCCFdConfig_FO_2.xsl; Line 7;
Column
> 40; [ERROR]: null
> ******************************************************
> and the line 7 is this: 'extension-element-prefixes="date">'
> Column 40 is lhe last column.
> I also tried J.Pietschmann advises, but the same error occurred with his
> example:
>
> ******************************************************
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet
> 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 	xmlns:fo="http://www.w3.org/1999/XSL/Format"
> 	xmlns:date="java.util.Date"
> 	xmlns:format="java.text.SimpleDateFormat"
> 	exclude-result-prefixes="date format">
>
> <xsl:template match="/">
> 	<xsl:variable name="pattern">yyyy.MM.dd G 'at' hh:mm:ss a
> zzz</xsl:variable>
> 	<xsl:variable name="SimpleDateFormat" select="format:new($pattern)" />
> 	<xsl:variable name="Date" select="date:new()" />
> 	<xsl:value-of select="format:format($SimpleDateFormat, $Date)" />
> </xsl:template>
> ******************************************************

<xsl:stylesheet> element must have version attribute - that's probably
your error. And that stylesheet doesn't generate any fo elements also,
is it test only one?

--
Oleg Tkachenko
Multiconn International, Israel


(routed by MccMailRouter)


Mime
View raw message