As Im generating the stylesheet I can do pretty much anything, but I
cant see how to do it using the key approach.
how about generating multiple templates for the different locators,
somthing like
<xsl:key name="fooLink" match="/root/node/foo" use="generate-id()"/>
<xsl:template match="*[generate-id() =
generate-id(key('fooLink',generate-id()))]">
<xsl:call-template name="IndyLink">
<xsl:with-param name="locator" select="'test1.xml'"
...
<xsl:key name="barLink" match="/root/node/bar" use="generate-id()"/>
<xsl:template match="*[generate-id() =
generate-id(key('barLink',generate-id()))]">
<xsl:call-template name="IndyLink">
<xsl:with-param name="locator" select="'test2.xml'"
...
<xsl:key name="bazLink" match="/root/node/foo" use="generate-id()"/>
<xsl:template match="*[generate-id() =
generate-id(key('bazLink',generate-id()))]">
<xsl:call-template name="IndyLink">
<xsl:with-param name="locator" select="'test3.xml'"
...
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list