Loading ...
Sorry, an error occurred while loading the content.

toc for pdf

Expand Messages
  • Joe D. Williams
    I m using this in a table cell for a TOC:
    Message 1 of 2 , Jun 7, 2001
    • 0 Attachment
      I'm using this in a table cell for a TOC:
       
        <fo:table-cell>
       
      <xsl:variable name="id">
        <xsl:call-template name="Section.id" />
      </xsl:variable>
       
                            <fo:block font-size="12pt" text-align="center" font-family="serif">
         <fo:leader leader-pattern="dots"/>
       
       
       
        <xsl:apply-templates select="Section.id"/>
        <fo:page-number-citation ref-id="{$id}" />
       
       
       
                              </fo:block>
        </fo:table-cell>
       
       
      Farther down in my XSL style sheet, I lay down this template:
       
      <xsl:template name="Section.id">
      <xsl:param name="Section" select="."/>
      <xsl:value-of select="generate-id($Section)" />
      </xsl:template>
       
      When I run fop to output the pdf from the .fo file, it says it references the id's, but does not find them.
       
      What am I doing wrong here?
    • Wendell Piez
      ... Are you remembering to put the same id value on an FO where the section starts? Cheers, Wendell
      Message 2 of 2 , Jun 8, 2001
      • 0 Attachment
        At 09:22 PM 6/7/01, you wrote:
        >When I run fop to output the pdf from the .fo file, it says it references
        >the id's, but does not find them.
        >
        >What am I doing wrong here?

        Are you remembering to put the same id value on an FO where the section starts?

        Cheers,
        Wendell


        ======================================================================
        Wendell Piez mailto:wapiez@...
        Mulberry Technologies, Inc. http://www.mulberrytech.com
        17 West Jefferson Street Direct Phone: 301/315-9635
        Suite 207 Phone: 301/315-9631
        Rockville, MD 20850 Fax: 301/315-8285
        ----------------------------------------------------------------------
        Mulberry Technologies: A Consultancy Specializing in SGML and XML
        ======================================================================
      Your message has been successfully submitted and would be delivered to recipients shortly.