Hi Oleg & J.Pietschmann,

Sandrine Pilon wrote:
> OK ! But a problem persists.
> when I compile with FOP, It returns me errors about the line:
> 'exclude-result-prefixes="user"' in stylesheet and I don't understand why.

What is the error message ?

Here is the result when I compiled with FOP:
******************************************************
[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>
******************************************************


Thank you because 'I'm stumped'. ;o)
Sandrine

Reply via email to