Bug 8968 - basic-link with internal-destination attribute doesn't work inside static-content element
Summary: basic-link with internal-destination attribute doesn't work inside static-con...
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: all
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 10179 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-10 08:31 UTC by John Walker
Modified: 2012-04-01 07:05 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Walker 2002-05-10 08:31:59 UTC
The basic-link element refering to an internal destination seems not to work 
inside static-contet (doesn't matter wich region it's inside). There's no 
warning or error message during rendering, but the link doesn't appear in the 
final result.
Comment 1 J.Pietschmann 2002-06-24 20:13:44 UTC
*** Bug 10179 has been marked as a duplicate of this bug. ***
Comment 2 Keith Groves 2002-06-25 08:11:59 UTC
Duplicate bug #10179 observed that an external-destination basic-link did work 
in the <fo:static-content flow-name="xsl-region-before"> region.  But did not 
in the <fo:static-content flow-name="xsl-region-after"> region.
    
Comment 3 Keith Groves 2002-07-11 10:46:22 UTC
The clickable region of a hyperlink is not the same as the position of the text 
when the margin-bottom of fo:region-body margin-bottom is not equal to the 
extent of the fo:region-after.  The clickable area gets offset vertically by 
the difference.

Take this example below, the hyperlinking works OK.  Then try changing margin-
bottom and the extent of region-after.  I suspect in examples where the link 
didn't appear to work at all the clickable region had shifted completely off 
the page.


<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page"
          page-height="29.7cm" 
          page-width="21cm">
	<fo:region-before extent="3cm"/>
	<fo:region-body margin-bottom="1.5cm"/>
	<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="front-section">
  <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference master-reference="page" page-
position="all"/>
  </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
			
</fo:layout-master-set>

<fo:page-sequence master-reference="front-section">
<fo:static-content flow-name="xsl-region-before">
  <fo:block>
    <fo:basic-link external-destination="www.google.com">google</fo:basic-link>
  </fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
  <fo:block>
    <fo:basic-link external-destination="www.google.com">google</fo:basic-link>
  </fo:block>
  </fo:static-content> 
    <fo:flow flow-name="xsl-region-body">
      <fo:block>
	<fo:basic-link external-destination="www.google.com">google</fo:basic-
link>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>	
</fo:root>
Comment 4 klease 2002-09-26 21:24:49 UTC
Should be in 0.20.5 on the maintenance branch.
Comment 5 Glenn Adams 2012-04-01 07:05:56 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed