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

using preceding in fo:static-content

Subject: using preceding in fo:static-content
From: "Lisa Rupe" <LRupe@xxxxxxxxxxx>
Date: Thu, 28 Jun 2001 15:36:59 -0500
fo preceding
I have a pretty flat XML file that contains page breaks and titles that I
want used in the header and footer of the FO instance.

<title level="1">Chapter 3</title>
<p>text......</p>
<pgbreak pgnum="5"/>
<p>text........</p>

This is the code I have for the XSL
    <fo:static-content flow-name="odd-header">
      <fo:block text-align="right">
        <xsl:value-of select="preceding::title[@level='1'][1]"/>
      </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="new-foot">
      <fo:block text-align="center"  font-size="8pt">
        <xsl:text>- </xsl:text>
        <xsl:value-of select="preceding::pgbreak[@pgnum][1]"/>
        <xsl:text> -</xsl:text>
      </fo:block>
    </fo:static-content>

I want the value of the pgnum attribute as the page number footer and the
title where level=1 as the header.
What am I doing wrong? Is it the XPath, or can I not put a relative
statement in the fo:static-content?

Thanks,
Lisa


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.