Hi Bob,
realy thanks a lot. This worked for me!
No I'm going to try to color them separately, which I will do in de pdf
with fo-blocks and in the html with css.
I also try insert an image (tooltip) in front of each REC and REQ.
Nice weekend,
Halm
Bob Stayton wrote:
> Hi,
> I think you would be better off customizing just the template for term
> rather than the whole list. This is a copy of the template from
> fo/lists.xsl, modified (untested) to include your counting code:
>
> <xsl:template match="varlistentry/term">
> <fo:inline>
> <xsl:call-template name="simple.xlink">
> <xsl:with-param name="content">
> <!-- Change this part -->
> <xsl:choose>
> <xsl:when test="parent::varlistentry/@role = 'REC'">
> <!-- insert your text here -->
>> <xsl:text>MYREC-</xsl:text>
>> <xsl:variable name="rec-number">
>> <xsl:number count="[EMAIL PROTECTED] = 'REC']" level="any"/>
>> </xsl:variable>
>> <xsl:number value="$rec-number" format="01"/>
> </xsl:when>
> <xsl:when test="parent::varlistentry/@role = 'REQ'">
> <!-- something similar here -->
> </xsl:when>
> <xsl:otherwise>
> <xsl:apply-templates/>
> </xsl:otherwise>
> </xsl:with-param>
> </xsl:call-template>
> </fo:inline>
> <xsl:choose>
> <xsl:when test="not(following-sibling::term)"/> <!-- do nothing -->
> <xsl:otherwise>
> <!-- * if we have multiple terms in the same varlistentry, generate
> -->
> <!-- * a separator (", " by default) and/or an additional line -->
> <!-- * break after each one except the last -->
> <fo:inline><xsl:value-of
> select="$variablelist.term.separator"/></fo:inline>
> <xsl:if test="not($variablelist.term.break.after = '0')">
> <fo:block/>
> </xsl:if>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]