xsl-list
[Top] [All Lists]

RE: [xsl] REPOST - duplicate footnotes

2006-09-20 09:07:12
Hi David,

I added the key
<xsl:key name="f" match="footnote" use="@opid"/>

And tried each of these variations of xsl:number but still get the same
output:

foo1
bar2
boo1

1. footnote text 1

Should be:

foo1
bar2
boo2
 
        <fo:inline baseline-shift="super" font-size="8pt">
                <xsl:for-each select="key('f',@targetid)">  
                        <!--<xsl:number
count="footnote[(_at_)opid=$xrefnode]" format="1" level="any"/>-->
                        <!--<xsl:number count="footnote" format="1"
level="any"/>-->
                        <!--<xsl:number format="1" level="any"/>-->
                </xsl:for-each>
        </fo:inline>

I must be doing something wrong in the xsl:number.  If I do get this to
work, I will certainly understand xsl:number and key much better than I
do now.

Thanks,

Ann Marie

-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: Wednesday, September 20, 2006 11:27 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Ann Marie Rubin (anrubin)
Subject: Re: [xsl] REPOST - duplicate footnotes


. I want to output the number of the  -->
                                      <!-- footnote referenced by this
targetid. -->
                                      <xsl:number
count="footnote[(_at_)opid=$xrefnode]" format="1" level="any"/>

don't call xsl:number when the current node is the xrefinline inline
element, you need to _go_ to the referenced footnote and then call
xsl:number so that you generate the same number on both the footnote and
the refererence.

something like
<xsl:key name="f" match="footnote" use="@opid"/>

then 
        <fo:inline baseline-shift="super"
font-size="8pt">
<xsl:for-each select="key('f',@targetid)">  <xsl:number level="any"/.
</xsl:for-each>
</fo:inline>

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>