Subject: RE: [xsl] REPOST - duplicate footnotes From: "Ann Marie Rubin \(anrubin\)" <anrubin@xxxxxxxxx> Date: Thu, 21 Sep 2006 06:29:39 -0700 |
Hi all, Thank you for your excellent suggestions. David, you were correct that something else in this stylesheet (which I inherited) is interfering with the execution of the xrefinline template. I created a small test XSL stylesheet with just the footnote and xrefinline templates, using your solution, and it worked fine. Wendell, thanks for the thorough explanation of and tips for using xsl:number in stylesheets. I will experiment more in getting the best solution. Best Regards, Ann Marie -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Wednesday, September 20, 2006 12:12 PM To: Ann Marie Rubin (anrubin) Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] REPOST - duplicate footnotes Hard to say what you are doing wrong without a source file 9you ought to be able to make a 10 line source file with a 3 references to 2 footnotes and not much else, for testing. and a stylesheet with just a couple of templates to handle this. First ignore the references and make sure that you get the correct attributes on xsl:number so that the correct number appears on teh footnote text. Most likely <xsl:number level="any"/> is all you need for that, but you may want other formats, etc. then if when processing the footnote reference you first move to the referenced footnote so that is the current node, then execute the smae code (either by copying it or by applying the same template) then it will necessarily generate the same number. If you are getting different numbers then most likely they are being generated by some other part of the stylehseet, and teh part you are changing isn't being called. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Newbie ? - dynamic linkin, Abel Braaksma | Thread | [xsl] Applying lists outside of par, Spencer Tickner |
Re: [xsl] writing error file, Frank Marent | Date | Re: [xsl] writing error file, David Carlisle |
Month |