RE: About fo:basic-link

2002-01-10 Thread Smethurst, Michael
if you're matching the same nodes in different modes

use 

fo:basic-link internal-destination={generate-id(.)}link/fo:basic-link
on the link

and

fo:block id={generate-id(.)}whatever/fo:block on the destination

[EMAIL PROTECTED]


RE: internal linking between separate page-sequences

2002-01-07 Thread Smethurst, Michael
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:blockSomething/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block
fo:basic-link internal-destination=biscuitLink: 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:blockSomething else/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
fo:block id=biscuitDestination: Key Questions/fo:block
/fo:flow
/fo:page-sequence
/fo:root