Hi Daniele,

Here's an example of what I do to render a list.
I took this right off the xsl-fo I'm currently using, so this is working.

The catch here is that I'm not sure how many items will be on the list.
So I coded accordingly.

<!-- =============================== -->
<!-- child element: recommendItems   -->
<!-- =============================== -->
<xsl:template match="recommendItems">
<fo:list-block provisional-label-separation="0.5cm"
provisional-distance-between-starts="1cm" space-after="12pt"
start-indent="1cm">
  <xsl:for-each select="recommendItem">
    <xsl:variable name="itemPos" select="position()"/>
    <fo:list-item>
      <fo:list-item-label end-indent="label-end()">
        <fo:block><xsl:value-of select="$itemPos"/></fo:block>
      </fo:list-item-label>
      <fo:list-item-body start-indent="body-start()">
        <fo:block>
          <xsl:apply-templates />
        </fo:block>
      </fo:list-item-body>
    </fo:list-item>
  </xsl:for-each>
</fo:list-block>
</xsl:template>

Hope this helps,

Regards,

Fabrizio.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to