<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE>P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=064114206-10072006><FONT
face=Arial>Sebastien,</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>It is quite obvious what is
wrong is that you cannot jump out of a <xsl:if> element.
</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>That is basic XML
syntax.</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>The following <SPAN
class=064114206-10072006><FONT face=Arial>is not correct
XML:</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>
<a></FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006> <FONT
face=Arial><b></FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>
</a></FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>
</b></FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>Check the W3C xml pages for
information on wellformed-ness</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>Regards,
Kees</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B>
owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]<B>On
Behalf Of </B>Sébastien CLERMONT<BR><B>Sent:</B> Friday, 07 July 2006 7:04
PM<BR><B>To:</B> xep-support@renderx.com<BR><B>Subject:</B> [xep-support]
Grouping bookmarks<BR><BR></FONT></DIV>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 -----------------------
</BLOCKQUOTE></BODY></HTML>