I am implementing EAD for the first time and am in the process of
converting my first set of files from XML into HTML, using the
EAD Cookbook as my guide. Upon creation of the XML documents, I
execute the transformation to HTML using James Clark's XT program,
with Style 1 of the
EAD Cookbook as my stylesheet. I have found the process productive
and have so far found success with the conversion.
However, I am having trouble with the conversion of component ID
name attributes for HTML anchors to form the targets of Ref elements.
My collection database control numbers dictate that I use 3 digits in
my component ID attributes (e.g., "series001", "series002", etc.).
During the process of conversion into HTML target anchors, the ID
attributes lose their
zeros (e.g., they are rendered as "series1", "series2", etc.), and
thus they do not link with their referents (which retain the zeros
from the target attribute).
I am wondering if there are alterations I can make to the eadcbs1.xsl
stylesheet (or anything else I can do) in order to prevent the
dropping of zeros. Below are the templates for converting Ref
elements and ID attributes into HTML anchors, as they appear in my
copy of eadcbs1.xsl:
<!-- This template converts a Ref element into an HTML anchor.-->
<!-- Converts an ID attribute into the name attribute of an HTML
anchor to form the target of a Ref element.-->
I appreciate any suggestions.
Tony Kurtz, Archivist
Washington State Archives, Central Region
Bledsoe-Washington Archives Building
Central Washington University MS 7457
Ellensburg, WA 98926-7547
Tel. (509) 963-2136
Fax (509) 963-1753
[log in to unmask]