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:56:25 GMT
for the purposes of this stripped down file i'm not using generate-id() at
all.

[i was using it to generate ids based on nodes in the source xml tree but i
stripped it out (and replaced it with the WORD "generated_id" to signify
that i would in practice generate the id in the xslt) cos i wanted the xsl
file to work with ANY xml document.]

My problem is not with using generate-id(). If you look at the source file i
posted, "generated_id" is seen twice: once in the first page-sequence as the
value of the attribute 'internal-destination', and once in the second page
sequence as the value of the attribute 'id'.

So it is unique throughout the xml document (only one node has the id
"generated_id")

I think i've confused matters by using the WORD "generated_id"; try
substituting "lala" or "test" or "biscuit"


<?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="biscuit">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="biscuit">Destination: Key Questions</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Mime
View raw message