RE: [xep-support] Grouping bookmarks

From: Kees de Grauw <>
Date: Sun Jul 09 2006 - 23:46:49 PDT


It is quite obvious what is wrong is that you cannot jump out of a <xsl:if>
That is basic XML syntax.
The following is not correct XML:

Check the W3C xml pages for information on wellformed-ness

Regards, Kees
  -----Original Message-----
[]On Behalf Of Sébastien CLERMONT
  Sent: Friday, 07 July 2006 7:04 PM
  Subject: [xep-support] Grouping bookmarks

  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.

  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).

  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?

   ----------- source code -----------------------
           <xsl:for-each select="//compte">
              <xsl:variable name="type">
                 <xsl:value-of select="ResourceBundle:getString($libelles,
                 <xsl:if test="@serco = '05'">
                    <xsl:value-of select="@serno"/>
              <rx:bookmark internal-destination="{$type}">
              <xsl:for-each select="cheque">
                 <xsl:variable name="cle" select="concat(@datecomptable,
                      <xsl:if test="(count(preceding::cheque)+1) mod 20 =
                          <!-- open group of 20 -->
                 <rx:bookmark internal-destination="{$cle}">
                  <xsl:if test="count(preceding::cheque) mod 20 = 19 or last
                      <!-- close group of 20 -->
   ----------- source code -----------------------

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Mon Jul 10 00:29:48 2006

This archive was generated by hypermail 2.1.8 : Mon Jul 10 2006 - 00:29:51 PDT