Special thanks to Pete Johnson for sharing his and Michael's fix for
internal linking in using the xsl:eval method. An elegant solution!
However, <xsl:eval> is a M$ proprietary method, and will not work in WD
19981226 compliant processors. Users of such processors might try,
depending on the exact nature of their source, something like
<xsl:template match="organization/list">
<xsl:for-each select="item">
<LI><A>
<xsl:attribute name="href">
#series<xsl:number/>
</xsl:attribute>
<xsl:apply-templates/>
</A></LI>
</xsl:for-each>
</xsl:template>
for the "link-to," and
<!-- Series level -->
<xsl:template match="c[@level='series']">
...
<A>
<xsl:attribute name="NAME">
series<xsl:number/>
</xsl:attribute>
<xsl:value-of select="did/unittitle"/>
</A>
...
</xsl:template>
<!--End Series level -->
for the "linked-to"
Curiously, I can't get <xsl:number/> to work with the processor in
IE5.0.
Additional info. re. <xsl:number/> and the XSL 'standard' as currently
defined by the W3C can be found at
http://www.w3.org/TR/1998/WD-xsl-19981216.html#AEN546 (section 2.7.10.1
*Numbering in the Source Tree*)
Stephen
--
Stephen Yearl, Project Archivist
[log in to unmask]
*************************
Connecticut Historical Society
1 Elizabeth Street
Hartford, CT, 06105
*************************
http://www.chs.org
*************************
|