DIGIFORMS
Digiforms Designer Documentation
 
 
 
 
 
 
Help by samples
 
 
 
Capture or output data in a defined layout
 
Extensible Markup Language
Hyperlinks
fo:basic-link element
Usage
Create inline hyperlinks in textboxes using the fo:basic-link element.
    Syntax
    Link to external resource
    For external document or resource hyperlinks, use the "external-destination" attribute. Optionally define "show-destination" as "new" if the link should open in a new window.
    <fo:basic-link show-destination="new" external-destination="http://www.digiforms.com"> Click here to open our web page </fo:basic-link>
    xslt
    Syntax
    Internal link ( document )
    If you want to create an internal document link, use the "internal-destination" attribute. The internal destination must refer to an FO object with attribute "id" matching the "internal-destination" attribute.
    The following example demonstrates how to create a document index for found chapters in xml.
    <!--================================--> <!-- A listing of document chapters --> <!--================================--> <xsl:for-each select="/doc/chapters/chapter"> <fo:block> <fo:basic-link internal-destination="{concat('chapter-',position())}" color="blue"> <xsl:value-of select="concat('Chapter ',position(), ': ',@title)"></xsl:value> </fo:basic-link> </fo:block> </xsl:for-each> <!--=============================================================--> <!-- A page template matching all chapters in document --> <!-- Adds a unique id to the block displaying the chapter title --> <!--=============================================================--> <xsl:template match="chapter"> <fo:page-template> . . <fo:block id="{concat('chapter-',position())}"> <xsl:value-of select="@title"></xsl:value> </fo:block> . . <fo:page-template> <xsl:template match="chapter">
    xslt
    Sample XML document, describing a document with chapters
    <doc> <chapters> <chapter title="Creating a document index"> content.. </chapter> <chapter title="Som other chapter title"> content.. </chapter> </chapters> </doc>
    xml