xsl-list
[Top] [All Lists]

Re: [xsl] RE: Alternate header for multi-page TOC pages

2012-03-07 12:45:57
The easiest way would be to create a variable for the page number then
test against the page number:

<xsl:variable name="pagenum"><fo:page-number/></xsl:variable>

Then test>

<xsl:if test="$pagenum != '1'">(continued)</xsl:if>

Hope this helps.

Betty

I have been unable to find an answer to my problem.  Either I'm using the
wrong search terms or it's not out there.

I'm trying to write an XSL that creates a different header for subsequent
pages of front matter. 
Example:
First TOC page, header says TABLE OF CONTENTS and subsequent TOC pages say
TABLE OF CONTENTS (continued).  I'll need to do the same for
LISTS/FIGURES/TABLES/etc.

I tried with static-content and retrieve-marker, but could not figure out
how to differentiate between first and subsequent pages to call the
different marker.  It doesn't necessarily have to be static content (or
even a header), just figured that would be the most appropriate way to
accomplish. 

BTW, my content is in DocBook and I'm keying on the <title> tags to build
the TOC.  I'm using Apache FOP.
Any help would be appreciated.


Henry "Hank" Doby
Reconnaissance and Surveillance Systems/Test Engineering
L-3 Communications/Mission Integration Division
Greenville, Texas
903.457.7593  /  fax ext 3563
Henry(_dot_)D(_dot_)Doby(_at_)L-3Com(_dot_)com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>