Stephanie A.,
At LC we have specific guidelines for the use of extptr in the EAD
2002 XML finding aids.
All extptr/@href are an entity found in the doctype. This means that
it is necessary to use the unparsed-entity-uri() function to capture
the http link or handle string.
Concerning the extptr for the seal that should appear on the title
page of the HTML/PDF document, the following template appears in the
stylesheet from the conversion toolkit (EAD_2002_HTML_conv-1.xsl):
<!-- lc seal -->
<xsl:template
match="
extptr[
parent::publisher
and
ancestor::publicationstmt
]
"
>
<img
align="top"
src="{unparsed-entity-uri(@href)}"
>
<xsl:attribute name="alt">
<xsl:choose>
<xsl:when test="string-length(@title)>1">
<xsl:value-of select="@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="unparsed-entity-uri(@href)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</img>
</xsl:template>
This stylesheet is available from the conversion toolkit site.
XSLT Engine: SAXON 6
XSLT Version: 1.0
Mike Ferrando
Library Technician
Library of Congress
Washington, DC
202-707-4454
EAD 1.0 to 2002 Conversion Toolkit
http://lcweb2.loc.gov/music/eadmusic/eadconv12/ead2002_r.htm
LoC Best Practices EAD 2002
http://www.loc.gov/ead/practices/lcp2002.html (see: External Linking)
--- Stephanie Ashley <[log in to unmask]> wrote:
> Hi,
>
> Would anyone be willing to share their xml encoding for an
> illustrative
> image on a finding aid" title page" (using <extptr> rather than
> <dao>) and
> the corresponding part of their xsl stylesheet? We're using a
> stylesheet
> adapted from the Cookbook but my xsl skills are very rudimentary
> and I
> didn't do the original adaptation, so tend to be able to make
> further
> modifications only when I have examples to work with.
>
> thanks!
>
> Stephanie Ashley
> Archives of American Art
> Smithsonian Institution
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|