RE: footnote back reference?

<[email protected]>
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">&ast;</FNR> -or-
>     <FNR HREF="CH3TBL2FN2">&ast;&ast;</FNR> etc..
> 
> And the footnotes are like this:
> 
>     <FN ID="CH3TBL2FN1">firstfootnotetext</FN>
>     <FN ID="CH3TBL2FN2">secondfootnotetext</FN>
> 
> I want this:
> 
>     &ast;  firstfootnotetext
>     &ast;&ast;  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.