xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cinzia" <cinzia...@dsl.pipex.com>
Subject Re: guide me
Date Sun, 09 Apr 2006 00:25:33 GMT
Correction: position() returned a multiple of 2 (not 2 as mentioned below).
Cinzia

>
> Jus a note on xslt processor. I have tried the code below out of
curiosity,
> and I cannot explain why, but position() always returns 2, which results
in
> an empty table-body, as the xsl:if fails. (Used: saxonb 8, fop 0.20.5,
j2se
> 1.4.2, winxp pro).
>
> Cinzia
>
> >   <xsl:template match="genericSiteDoc">
> >     <xsl:apply-templates />
> >   </xsl:template>
> >
> >   <xsl:template match="cityInstal">
> >     <xsl:if test="position() mod 2 =1">
> >       <fo:table-row>
> >       <fo:table-cell><fo:block><xsl:value-of select="."
> /></fo:block></fo:table-cell>
> >       <fo:table-cell><fo:block><xsl:value-of
> select="following-sibling::cityInstal[1]" /></fo:block></fo:table-cell>
> >       </fo:table-row>
> >     </xsl:if>
> >   </xsl:template>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message