>>> [log in to unmask] 1/16/2007 4:47 PM >>>
>>Can anyone help me get from this, in my xml doc:
>> <extptr show="embed" actuate="onload" entityref="nyplogo"/>
>> using an xsl template, to display the image.
<xsl:template match="extptr">
<xsl:choose>
<xsl:when test="self::extptr[@show='embed']">
<img src="{@xpointer}"
alt="{@title}" align="{@altrender}"/>
</xsl:when>
<xsl:otherwise>
<a
href="{@xpointer}">"{@title}"</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
>>Similarly, I need to get from the line below in my xml doc:
>> <extref href="http://nypl.org/research/lpa/the/the.html"
actuate="onload"
>> show="new">http://nypl.org/research/lpa/the/the.html</extref>
>> using an xsl template, to create line below in the resulting html
>> <a href="http://nypl.org/research/lpa/the/the.html"
>> target="_blank">http://nypl.org/research/lpa/the/the.html</a>
<xsl:template match="extref">
<a href="{@href}" target="_blank">
<xsl:apply-templates/>
</a>
</xsl:template>
Michele C.
-=--=--=--=--=--=--=--=--=--=--=--=--=--=-
Michele R. Combs
[log in to unmask]
Manuscripts Processor
Special Collections Research Center
Syracuse University Library
222 Waverly Avenue
Syracuse, NY 13244
(315) 443-2697
-=--=--=--=--=--=--=--=--=--=--=--=--=--=-
|