RE: footnote back reference?
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Hi, > OK, three days is enough to wrack my brains... > > > > I have a footnote references like this: > > <FNR HREF="CH3TBL2FN1">*</FNR> -or- > <FNR HREF="CH3TBL2FN2">**</FNR> etc.. > > And the footnotes are like this: > > <FN ID="CH3TBL2FN1">firstfootnotetext</FN> > <FN ID="CH3TBL2FN2">secondfootnotetext</FN> > > I want this: > > * firstfootnotetext > ** secondfootnotetext > > Question: how can I replace the @ID with the matching FNR text? <xsl:template match="FNR"> <xsl:value-of select="."/> <xsl:text> </xsl:text> <xsl:value-of select="//FN[@ID = current()/@href]"/> </xsl:template> > This is either really really simple, or...um, not. > > BTW, my processor (xt-2002*) doesn't seem to like keys() You should ask general XSLT questions on XSL List <http://www.mulberrytech.com/xsl/xsl-list/>. Furthermore, you should move to an implementation that implements whole XSLT 1.0 spec, e.g. Saxon or Xalan, as keys make a difference. Cheers, Jarno - DJ Todd: Real Synthetic Audio - 06/06/2005