Subject: Re: [xsl] Internal Linking From: Horace Burke <xmlmarkup@xxxxxxxxx> Date: Tue, 24 Apr 2007 09:27:49 -0700 (PDT) |
Thanks Ken! --- "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > At 2007-04-23 15:35 -0700, Horace Burke wrote: > >I am doing something that I would consider fairly simple. However, it > is > >not working for me. I am trying to link from a cover page to chapters > >inside of some PDF documents; this is using XSL-FO. The problem that I > am > >having is that links on the cover page are not jumping to their > >destinations. Can anyone see what I am doing wrong? I have included > >snippets below. > > Based on your evidence, I could guess exactly where to look. It > turns out you are using generate-id() on the current node but the > current node is a different node the two areas of your stylesheet: > > ><xsl:template match="CoProdId"> > > <fo:table-and-caption> > >... > > <fo:block border-style="solid" border-bottom="1pt" > > border-top="none" border-left="none" padding-top="2mm" > > padding-bottom="1.5mm" border-right="none" > > id="{generate-id(.)}"> > >... > ><xsl:template match="descpara"> > >... > > <xsl:for-each select="//CoProdId/ProdName"> > > <xsl:if test="@id = $xref"> > > <fo:basic-link internal-destination="{generate-id(.)}"> > > In the first template it appears the current node is CoProdID, while > in the second template it appears to be ProdName. > > Guessing your requirements, it seems that you want all ProdName > elements to point to the CoProdId, so that would mean in your second > template change the code to read "{generate-id(..)}" to point to > CoProdId. > > I hope this helps. > > . . . . . . . . . . . . . . Ken > > -- > World-wide corporate, govt. & user group XML, XSL and UBL training > RSS feeds: publicly-available developer resources and training > G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) > Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc > Legal business disclaimers: http://www.CraneSoftwrights.com/legal > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Internal Linking, G. Ken Holman | Thread | [xsl] suggestions for per request x, Andrew Mason |
Re: [xsl] XSLT Text Processing: Fun, Dimitre Novatchev | Date | [xsl] Generating JSP/JSTL, Kai Weber |
Month |