XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
priya kadamSubject: xsl-fo internal link
Author: priya kadam
Date: 27 Nov 2006 07:48 AM
Hello all,

I am new to xsl-fo. I need to create internal link dynamically to the content of the variable 'LinkTest'. How do i assign the id? Please find below the code snippet.
Let us assume String2 contains: "basic string substring1> continue" and GTcontains: ">"
<xsl:variable name="LinkTest" select="substring-before($String2,$GT)"/>
The output of the above statement will be: "substring1" i.e.LinkTest=substring1
there is also a link created with id"substring1"
If I want to assign a cross reference link to the value of LinkTest how do i do it?

I am trying the following:
<fo:basic-link internal-destination="{$LinkTest}" color="blue">
<xsl:value-of select="$LinkTest"/>
</fo:basic-link>


Can someone suggest a solution?

Rgds,
Priya

Postnext
Ivan PedruzziSubject: xsl-fo internal link
Author: Ivan Pedruzzi
Date: 27 Nov 2006 11:07 AM

To create a unique id you have to define the attribute "id" on each block you would like to reference.

For example

<fo:block id="{$LinkTest}">

Hope this helps
Ivan Pedruzzi
Stylus Studio Team
http://www.stylusstudio.com/xml_download.html

Postnext
priya kadamSubject: xsl-fo internal link
Author: priya kadam
Date: 28 Nov 2006 12:19 AM
Originally Posted: 28 Nov 2006 12:18 AM
Hello Ivan,

Thanks for the quick response.
In that case i will have to make the xsl:variable global if I am accessing it in another block . Is that correct?

Posttop
Ivan PedruzziSubject: xsl-fo internal link
Author: Ivan Pedruzzi
Date: 28 Nov 2006 12:24 AM

You need to use something that is in reachable in both places.


Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.