[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: REPOST - duplicate footnotes

Subject: RE: REPOST - duplicate footnotes
From: "Ann Marie Rubin \(anrubin\)" <anrubin@xxxxxxxxx>
Date: Wed, 20 Sep 2006 09:06:28 -0700
duplicating footnote
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[@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@xxxxxxxxx]
Sent: Wednesday, September 20, 2006 11:27 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: Ann Marie Rubin (anrubin)
Subject: Re:  REPOST - duplicate footnotes


> . I want to output the number of the  -->
> 					<!-- footnote referenced by this
> targetid. -->
> 					<xsl:number
> count="footnote[@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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.