<!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>&nbsp;</DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>It is quite obvious what is 
wrong is that you cannot jump out of a &lt;xsl:if&gt; element. 
</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>That is basic&nbsp;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>&nbsp; 
&lt;a&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006>&nbsp;&nbsp;&nbsp; &nbsp; <FONT 
face=Arial>&lt;b&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>&nbsp; 
&lt;/a&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial>&nbsp; 
&lt;/b&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=064114206-10072006><FONT face=Arial></FONT></SPAN>&nbsp;</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>&nbsp;</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.&nbsp; I have a document that can have from 1 to 1000 
  bookmarks and I want them to be grouped by 20.&nbsp; I tried the 
  "&lt;for-each-group&gt;" 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 &lt;xsl:if&gt; tags and put &lt;xsl:bookmark&gt; 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 "&lt;!-- open group of 20 --&gt;" 
  by "&lt;rx:bookmark ...&gt;" and "&lt;!-- close group of 20 --&gt;" by 
  "&lt;/rx:bookmark&gt;" in my code below, I get the validation errors.&nbsp; 
  What can I do?<BR><BR>&nbsp;----------- source code 
  -----------------------<BR>&lt;rx:outline&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:for-each 
  select="//compte"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:variable 
  name="type"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:value-of select="ResourceBundle:getString($libelles, 
  concat('docimgchq.pdf.contenu.libelle.cpt',@serco))"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:if test="@serco = 
  '05'"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:value-of 
  select="@serno"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/xsl:if&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/xsl:variable&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;rx:bookmark 
  internal-destination="{$type}"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;rx:bookmark-label&gt;&lt;xsl:value-of 
  select="$type"/&gt;&lt;/rx:bookmark-label&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:for-each 
  select="cheque"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;xsl:variable name="cle" select="concat(@datecomptable, 
  @noref)"/&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xsl:if 
  test="(count(preceding::cheque)+1) mod 20 = 0"&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &lt;!-- open group of 20 --&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &lt;/xsl:if&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;rx:bookmark 
  internal-destination="{$cle}"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;rx:bookmark-label&gt;&lt;xsl:value-of 
  select="@nocheque"/&gt;&lt;/rx:bookmark-label&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/rx:bookmark&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
  &nbsp;&nbsp; &nbsp;&nbsp; &lt;xsl:if test="count(preceding::cheque) mod 20 = 
  19 or last cheque"&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- close 
  group of 20 --&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; 
  &lt;/xsl:if&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/xsl:for-each&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/rx:bookmark&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/xsl:for-each&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/rx:outline&gt;<BR>&nbsp;----------- source code ----------------------- 
</BLOCKQUOTE></BODY></HTML>