- From: Lila Chene <chene@lra.fr>
- Date: Mon, 05 Feb 2001 11:59:13 +0100
- To: www-xsl-fo@w3.org
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() < 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 Monday, 5 February 2001 05:59:39 UTC