You could use the generate-id() function. This will return a string value †that uniquely identifies a node. The string always begins with an alpha character, followed by a mix of alphanumeric characters.†
Generate an HTML ID for each series and subseries in the finding aid (say, on your title), something like:
† † † † †<xsl:attribute†name="href">
† † † † † † ††<xsl:value-of†select="generate-id(current())"/>† † † † † † † †
And then where you're trying to create the subseries links in the series arrangement section, just generate a list of subseries unittitles linking to anchor tags for each child c0x [@level='subseries']. You use the same generate-id() function to create these anchor tags that you used above.
Iím hoping someone can help me.† I want for each series c01 arrangement statement to be able to link to each of its nested c02 subseries Ė much in the same way that an archdesc level arrangement statement contains links to each series within the collection.
I can reproduce the links for each subseries within their perspective series arrangement statement, but the problem is that while the links are generated correctly for series 1 to each nested subseries, the subseries links for series 2 link back to each of the subseries in series 1.
For example, Series 1 Subseries 1 links correctly, but Series 2, Subseries 1 links to Series 1 Subseries 1 and not to Series 2 Subseries 1 as it should. The same holds true for each subsequent series.
This is the code that generates the arrangement statement links for me.
††† <div style="margin-left:75pt">
††††††††††† † <xsl:attribute name="href">#subseries<xsl:number/>
†††††††††††††††††††† <xsl:number count="c02" from="c01"/>
††††††††††††††††††††††††††††††††††† ††††††††† </xsl:attribute>
††††††††††† † <xsl:apply-templates/>
In my c01 level-series template I have the following,
<xsl:text>series</xsl:text><xsl:number from="dsc" count="c01"/>
In my c02-level-subseries template I have the following,
<xsl:number from="dsc/c01" count="c02"/>
This is a particularly large finding aid so it would be nice if folks could navigate within each series without excessive scrolling. †Iíve tried using for-each statements but to no avail. What am I missing? Any help would be greatly appreciated.
Russell Franks, MLIS
Librarian for Special and Archival Collections
Phillips Memorial Library
1 Cunningham Square
Providence, RI 02918-0001