[Home] [By Thread] [By Date] [Recent Entries]
On 06.04.2021 19:05, Deiter, Cathy E (US) cathy.deiter@xxxxxxxxxxxxxx wrote:
I am a Newbie and am having difficulties with an XSLT doing a lookup. I need to lookup up an old file number based off of an attribute, look at the lookup file and pull in the new number. I am using Oxygen Editor version 22.1. I would always use a key e.g. declare <xsl:key name="file-ref" match="row/NewFile" use="@id"/> then simply use a template <xsl:template match="xref/@wpid[key('file-ref', ., doc('lookup.xml'))]">
<xsl:attribute name="{name()}" select="key('file-ref', .,
doc('lookup.xml')"/>
</xsl:template>All normal copying would be handled by the identity transformation.
|

Cart



