<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>I am trying to form groups of 20 bookmarks in my document. I have a document that can have from 1 to 1000 bookmarks and I want them to be grouped by 20. I tried the "<for-each-group>" tag but xep tells me that I can't use that tag in this part of the xsl.<br><br>My rx:outline works fine but when I am trying to place <xsl:if> tags and put <xsl:bookmark> within those if tags, I get an XML validation exception because the bookmark tags are not closed (they are but in an other if).<br><br>If I replace "<!-- open group of 20 -->" by "<rx:bookmark ...>" and "<!-- close group of 20 -->" by "</rx:bookmark>" in my code below, I get the validation errors. What can I do?<br><br> ----------- source code -----------------------<br><rx:outline><br> <xsl:for-each select="//compte"><br> <xsl:variable name="type"><br> <xsl:value-of select="ResourceBundle:getString($libelles, concat('docimgchq.pdf.contenu.libelle.cpt',@serco))"/><br> <xsl:if test="@serco = '05'"><br> <xsl:value-of select="@serno"/><br> </xsl:if><br> </xsl:variable><br> <rx:bookmark internal-destination="{$type}"><br> <rx:bookmark-label><xsl:value-of select="$type"/></rx:bookmark-label><br> <xsl:for-each select="cheque"><br> <xsl:variable name="cle" select="concat(@datecomptable, @noref)"/><br> <xsl:if test="(count(preceding::cheque)+1) mod 20 = 0"><br> <!-- open group of 20 --><br> </xsl:if><br> <rx:bookmark internal-destination="{$cle}"><br> <rx:bookmark-label><xsl:value-of select="@nocheque"/></rx:bookmark-label><br> </rx:bookmark><br> <xsl:if test="count(preceding::cheque) mod 20 = 19 or last cheque"><br>
<!-- close group of 20 --><br>
</xsl:if><br> </xsl:for-each><br> </rx:bookmark><br> </xsl:for-each><br> </rx:outline><br> ----------- source code -----------------------</body>
</html>