473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

listing footnotes

I've got a set of footnotes at the root which are being referenced
elsewhere in the tree via footnot-accoc elements. Footnote-assoc may
occur mutliple places/levels within the tree. I want to number the
footnote reference based on the footnote-assocs within each bucket.
FYI, I use <apply-templates/extensively in my XSL stylesheets and,
if possible, I'd like to avoid passing a node set everytime.

<root>
<footnotes>
<footnote id="foot-001">
foo
</footnote>
</footnotes>
<bucket>
<description>
<para>Blah, blah<footnote-assoc>foot-001</footnote-assoc></para>
<bullet-group>
<bullet>
<bullet-para>hah<footnote-assoc>foot-001</footnote-assoc>,
hah, hah, hah</bullet-para>
</bullet>
</bullet-group>
</description>
</bucket>
</root>

TIA,
David

May 30 '07 #1
1 1443
It'd be a lot easier if you were willing to number the footnotes, and
accept that they may be referenced out of numeric order in the document;
that would let you just use the number of footnotes preceeding this one.

If you really want to assign the numbers in the order in which they
appear in the description... I suspect you're going to get into
Meunchian-like processing to gather all the first-references in order
and bind them to the values.

Before trying to invent this, I'd suggest checking the XSLT FAQ to see
if some has already solved it. It feels like something which is both
common enough, and messy enough, to have been posted there.

May 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: KindOBlue | last post by:
Hello, I'm a beginner with FOP and I've managed to write a simple layout for my resume. I have a problem, still: the footnotes starts below the footer (which is a static text put on...
10
by: Chris | last post by:
Hi, Not sure if this is the right forum, but hopefully someone can help me. I am creating something for our intranet and i want to list the files and folders of a directory, i found some code...
1
by: httpmart | last post by:
On my website I routinely make use of anchors such as: <a name="shipping">SHIPPING</a> and a link to them such as: <a href="#shipping">Go to Shipping information</a> These work fine on IE.
2
by: Haines Brown | last post by:
At present I style my footnotes as follows: .note { vertical-align: super; font-size: smaller; padding-right: 2px; } <p> <a name="N1" class="note">1</a>
19
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing =...
3
by: David Jacques | last post by:
I am trying to get a list of all files of a certain extension type on disk to do some processing in a loop. The code needs to be portable to UNIX, so I need to use plain c functionality. Does...
5
by: Andy Mabbett | last post by:
Any suggestions for better ways to mark up and style the footnotes and especially the references to them (currently and temporarily styled in-line), in: ...
1
by: Johnny Jörgensen | last post by:
I've got a serious problem. I've got Visual Studio 2005 installed, and of course I'm using the Pretty Listing formatting function. When I start up VS, everything is fine, but after a while (which...
5
by: jain236 | last post by:
HI every body, i am always getting the following error while parsing a directory . i am reading a directory by doing ls and trying to find out the name,type,size, mtime and mode of files from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.