I buid a file test with minimum elements as follow and the result is OK
!!!!!!
I think there are elements in my file whitch are icompatible. I will search
in this side......
Thank you very much for your help,
Sandrine

*****************************************************
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
        version="1.0"
        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="ROOT">
  <fo:root>

  <!-- defines the layout master -->
  <fo:layout-master-set>
      <fo:simple-page-master master-name="all"
                             page-height="29.7cm"
                             page-width="21cm"
                             margin-top="0cm"
                             margin-bottom="1cm"
                             margin-left="2cm"
                             margin-right="2cm">
        <fo:region-body margin-top="3cm" margin-bottom="1.5cm"/>
        <fo:region-before extent="3cm"/>
        <fo:region-after extent="1.5cm"/>
      </fo:simple-page-master>
  </fo:layout-master-set>

  <!-- heading file -->
  <fo:page-sequence master-reference="all">
    <fo:flow flow-name="xsl-region-body">
        <fo:block>
                <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)" 
/>
        </fo:block>
    </fo:flow>
  </fo:page-sequence> <!-- end heading file -->

  </fo:root>
  </xsl:template>
  </xsl:stylesheet>

*****************************************************












-----Message d'origine-----
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 2 mai 2002 13:08
À : [EMAIL PROTECTED]
Objet : Re: Current date integration



hmmm, well, with version attribute the transformation works fine with
saxon and xalan, but it produces no fo elements, how do you use it with fop?

Sandrine Pilon wrote:
  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'.
--
Oleg Tkachenko
Multiconn International, Israel


(routed by MccMailRouter)

Reply via email to