Since right now keeps are only implemented for table rows, I've got to
hack a way to keep certain content together on a page. To that end, I'm
counting the number of x and y elements, the sum of which I test against
a value to determine whether or not to insert a page break. My
expression looks like this:

    <!-- hack to make sure stuff is kept together -->
    <xsl:choose>
      <xsl:when test="13>=count(./elections)+count(./dependents)">
        <fo:block font-size="20pt">
          13 OR GREATER
        </fo:block>
      </xsl:when>

      <xsl:otherwise>      
        LESS THAN 13
        <fo:block break-before="page">
          &#xA0;
        </fo:block>
      </xsl:otherwise>
    </xsl:choose>

The problem is that my test is always true, even when the sum of the
counts is less than 13. Anyone knowledgable in XPATH out there? Also,
does anyone know of a good XPATH primer on the web?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to