[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Determine number of columns in a row for a marker

Subject: Determine number of columns in a row for a marker
From: KAATMAN Matthew <matthew.kaatman@xxxxxxxxxxxxxx>
Date: Fri, 18 Oct 2013 20:56:08 +0200
 Determine number of columns in a row for a marker
I'm working within the context of DITA and anytime a table breaks across a
page, I want to set a marker that will be retrieved in the table-head and
display the table title along with (Continued).
It's mostly working but I'm having difficulty setting fo:table-cell
number-columns-spanned.

Setting the marker within:
<xsl:template match="*[contains(@class, ' topic/row ')]" > ...
            <xsl:choose>
                <xsl:when test="count(preceding-sibling::*[contains(@class, '
topic/row ')]) = 1">
                   <fo:marker marker-class-name="continued"/>
                </xsl:when>
                <xsl:otherwise>
                    <fo:marker marker-class-name="continued">
                        <fo:table-row
xsl:use-attribute-sets="table__continued__text">
                            <fo:table-cell number-columns-spanned="{???NEED TO
FIGURE OUT HOW TO COUNT THE NUMBER OF COLUMNS}???">
                                <fo:block
padding-bottom="5pt"><xsl:apply-templates
select="ancestor-or-self::*[contains(@class,' topic/table
')]/*[contains(@class,' topic/title ')]"><xsl:with-param
name="fromContinued">true</xsl:with-param></xsl:apply-templates></fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:marker>
                </xsl:otherwise>
            </xsl:choose>

Then later the marker is retreived:
<xsl:template match="*[contains(@class, ' topic/thead ')]">
        <fo:table-header xsl:use-attribute-sets="tgroup.thead" id="{@id}">
                    <fo:retrieve-table-marker retrieve-class-name="continued"
                        retrieve-position-within-table="first-starting-within
-page"/>

Without success I've tried:
{count(preceding-sibling::*[contains(@class, ' topic/row ')])}

Any guidance would be appreciated.
Thanks!
Matt
AVIS : Ce courrier et ses pieces jointes sont destines a leur seul
destinataire et peuvent contenir des informations confidentielles appartenant
a bioMerieux. Si vous n'etes pas destinataire, vous etes informe que toute
lecture, divulgation, ou reproduction de ce message et des pieces jointes est
strictement interdite. Si vous avez recu ce message par erreur merci d'en
prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes.
NOTICE: This message and attachments are intended only for the use of their
addressee and may contain confidential information belonging to bioMerieux. If
you are not the intended recipient, you are hereby notified that any reading,
dissemination, distribution, or copying of this message, or any attachment, is
strictly prohibited. If you have received this message in error, please notify
the original sender immediately and delete this message, along with any
attachments.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.