Gavin Tong wrote:
> We have a search interface for brazilian medical journals and articles. All
> the information on one particular author is contained in that authors's xml
> file. Thus any one author xml file may contain several bibliographic
> listings which will be diplayed when the users asks for published materials.
> We are trying to display the record's position beside it's display, such
> that each bibliographic citation will appear with a number like "1 of 5", "2
> of 5" and so on.
Assuming you've got a document such as this:
<?xml-stylesheet type="text/xsl" href="biblio.xsl"?>
Then the following stylesheet displays a table with the relative
position ("1 of 5," etc.) in the first column, and the contents of the
corresponding BIBLIOGRAPHY element in the second:
of <xsl:value-of select="last()"/></td>
> I've figured out how to get a return for the number of nodes with the count
The count() function probably isn't what you want here. The last()
function handles the current node-set just fine; count() (to which you
have to pass a node-set as an argument) is IMO really useful only when
you need to refer to some *other* node-set than the one you're
processing in a given template rule.
John E. Simpson | "For a while I didn't have a car... I
http://www.flixml.org | had a helicopter... no place to park it,
XML Q&A: www.xml.com | so I just tied it to a lamp post and
| left it running. <slow glance upward>"
| (Steven Wright)