W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2001

[Fwd: xsl-fo]

From: Lila Chene <chene@lra.fr>
Date: Wed, 07 Feb 2001 10:31:10 +0100
Message-ID: <3A8115DD.F3C2B91D@lra.fr>
To: www-xsl-fo@w3.org


attached mail follows:


Hi,

I try to be clear with my english! I have a problem with generation pdf
documents! my problem is that I start in this langage ""pdf generation
with xsl-fo and xml documents"",  and I did a xsl-fo document In my pdf
version I must have a static table with two columns! the title of the
first column is ""premiere journee (first day)"" and the the second
column with title ""deuxieme journee (second day)"" and fist chapter,
first paragraphe or first alineas are in the first column and the others
in the second columns
the problem is I did all the possible applications but I don't have the
title ""premiere journee and deuxieme journee"" but I have the others in
the order. please could you say me what is wrong in my application!!

many thanks for your any ideas.

Lila


<xsl:template match="journee">
<fo:table-cell>
 <fo:block>
<xsl:call-template name="nomJournee"/>

<!--<fo:block font-weight="bold" font-size="10pt"
text-align="center"><xsl:value-of
select="jour.sur-titre"/></fo:block>-->
<!--<fo:block><xsl:value-of select="//jour.cours"/></fo:block>-->
<fo:block><xsl:value-of select="cours.alinea1"/></fo:block>


<xsl:apply-templates
select="(jour.cours|jour.sur-titre|cours.alinea1|cours.alinea2|cours.alinea3|cours.pratique)[position()
&lt; 5]"/>
 </fo:block>
 </fo:table-cell>
</xsl:template>


<xsl:template name="nomJournee">
<xsl:choose>
   <xsl:when test="@type='premier_jour' or @type='deuxieme_jour' or
@type='troisieme_jour' or @type='journee_complementaire' or
@type='formati
on'">
 <xsl:variable name="jour"
select="count(preceding-sibling::journee[@type='premier_jour' or
@type='deuxieme_jour' or  @type='formation'])+1"/>

      <xsl:choose>
        <xsl:when test="$jour=1"><fo:inline
text-decoration="underline">Première Journée</fo:inline></xsl:when>
 <xsl:when test="$jour=2"><fo:inline
text-decoration="underline">Deuxième Journée</fo:inline></xsl:when>
 <xsl:when test="$jour=3"><fo:inline text-decoration="underline">Journée
Complementaire</fo:inline></xsl:when>
      <xsl:otherwise>jour n°<xsl:value-of
select="$jour"/></xsl:otherwise>
      </xsl:choose>
 </xsl:when>
  </xsl:choose>
</xsl:template>
Received on Wednesday, 7 February 2001 04:31:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT