You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Koh Hong Kiat <hk...@800easypay.com> on 2000/11/08 02:52:39 UTC

problem ?

Hello all,

I have been working with <fo:simple-link>.

However I seem to be able to get the hyperlink (inside a PDF) working
only if it is within a <fo:block></fo:block>. If I were to add the
<fo:simple-link>
within a <fo:block-container></fo:block-container>, it no longer works.

Code samples
---------------
code below works fine.

<fo:block font-size="9pt" line-height="12pt" word-spacing="3cm"
text-align="start"
             space-before.optimum="13pt" start-indent="56.7pt">

<fo:simple-link>

<xsl:attribute name="color">#0000FF</xsl:attribute>

<xsl:attribute name="external-destination"><xsl:value-of
select="//URL"/></xsl:attribute>

<xsl:value-of select="NAME"/>

</fo:simple-link>

</fo:block>



code below does NOT work.
<fo:block-container height="1cm" width="3.2cm" top="3cm" left="0cm"
position="absolute">

<fo:block font-size="8pt" line-height="10pt" word-spacing="3cm"
text-align="center">

<fo:simple-link>

<xsl:attribute name="color">#0000FF</xsl:attribute>

<xsl:attribute name="external-destination"><xsl:value-of
select="//URL"/></xsl:attribute>

<xsl:value-of select="NAME"/>

</fo:simple-link>

</fo:block>

</fo:block-container>



Is this the way it is ? Or am I doing something incorrectly.

Thank you.

HK


Re: problem ?

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
The spec indicates that to display a simple-link (now fo:basic-link, 
actually, we just haven't updated the name yet) it is enclosed in an fo:block.

Obviously enclosing the whole shebang in an fo:block-container should not 
affect that result. So this is a FOP problem.

Arved Sandstrom

At 09:52 AM 11/8/00 +0800, Koh Hong Kiat wrote:
>Hello all,
>
>I have been working with <fo:simple-link>.
>
>However I seem to be able to get the hyperlink (inside a PDF) working
>only if it is within a <fo:block></fo:block>. If I were to add the
><fo:simple-link>
>within a <fo:block-container></fo:block-container>, it no longer works.
>
>Code samples
>---------------
>code below works fine.
>
><fo:block font-size="9pt" line-height="12pt" word-spacing="3cm"
>text-align="start"
>             space-before.optimum="13pt" start-indent="56.7pt">
>
><fo:simple-link>
>
><xsl:attribute name="color">#0000FF</xsl:attribute>
>
><xsl:attribute name="external-destination"><xsl:value-of
>select="//URL"/></xsl:attribute>
>
><xsl:value-of select="NAME"/>
>
></fo:simple-link>
>
></fo:block>
>
>
>
>code below does NOT work.
><fo:block-container height="1cm" width="3.2cm" top="3cm" left="0cm"
>position="absolute">
>
><fo:block font-size="8pt" line-height="10pt" word-spacing="3cm"
>text-align="center">
>
><fo:simple-link>
>
><xsl:attribute name="color">#0000FF</xsl:attribute>
>
><xsl:attribute name="external-destination"><xsl:value-of
>select="//URL"/></xsl:attribute>
>
><xsl:value-of select="NAME"/>
>
></fo:simple-link>
>
></fo:block>
>
></fo:block-container>
>
>
>
>Is this the way it is ? Or am I doing something incorrectly.
>
>Thank you.
>
>HK
>
>
Senior Developer
e-plicity.com (www.e-plicity.com)
Halifax, Nova Scotia
"B2B Wireless in Canada's Ocean Playground"