xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smethurst, Michael" <Michael.Smethu...@gee.co.uk>
Subject RE: internal linking between separate page-sequences
Date Mon, 07 Jan 2002 11:09:31 GMT
the generated_id thing was just a way of hard-coding the generate-id() thing
i had been using so i could make the xsl xml independant. You could call
"generate_id" "tobythedog" if you wanted but it still dosn't work. The
problem seems to come from using the seem id (whether hard-coded or
generated using generate-id()  ) across 2 different page-sequences.....
does this make sense... i could on the other hand just be thick...
thanks anyway

-----Original Message-----
From: Meena [mailto:meenakshi.sarvagopal@wipro.com]
Sent: 07 January 2002 11:20
To: fop-user@xml.apache.org
Subject: Re: internal linking between separate page-sequences

Hi Michael,
You have to put as 'generate_id' and not 'generated_id'. I tried with it and
it works fine.

----- Original Message -----
From: "Smethurst, Michael" <Michael.Smethurst@gee.co.uk>
To: <fop-user@xml.apache.org>
Sent: Monday, January 07, 2002 4:07 PM
Subject: internal linking between separate page-sequences

> i'm currently trying to output a PDF using a style sheet with a single
> master page and a number of page-sequences (i'm using numerous page
> sequences because i want to display different information in the page
> depending upon the section). i also want to include a toc on the first
> page-sequence set which will link to the relevant page-sequence. however
> when i try to convert this it complains that "The id 'generated_id'
> exists in this document". Its fine if i want to link within a
> but seems to get confused with links between page-sequences. Included is a
> simplified version of the fop input file.
> any help much appreciated...
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="A4">
> <fo:region-body margin-bottom="20mm"/>
> <fo:region-after extent="20mm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence country="uk" language="en" initial-page-number="1"
> master-name="A4">
> <fo:static-content flow-name="xsl-region-after">
> <fo:block>Something</fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> <fo:basic-link internal-destination="generated_id">Link: Key
> Questions</fo:basic-link>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> <fo:page-sequence country="uk" language="en" master-name="A4">
> <fo:static-content flow-name="xsl-region-after">
> <fo:block>Something else</fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block id="generated_id">Destination: Key Questions</fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> the message i get is:
> C:\Java\Fop-0.20.1>java -cp
> build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\
> xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -fo
> ..\Working\Out\Out
> .xml -pdf ..\Working\Pdf\Out.pdf
> FOP 0.20.1
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
>  [1]
>  [2ERROR: The id "generated_id" already exists in this document
> Michael Smethurst
> Web Developer
> Sweet and Maxwell Group

View raw message