oops... I forgot to post the crucial last bit of information...
the code I posted gives this error
net.sf.saxon.trans.XPathException: key() in an XSLT 2.0 pattern must
have exactly two arguments
Failed to compile stylesheet. 1 error detected.
On Tue, Apr 24, 2012 at 8:41 PM, ihe onwuka
<ihe(_dot_)onwuka(_at_)googlemail(_dot_)com> wrote:
key() in an XSLT 2.0 pattern must have exactly two arguments
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:key name="maindoc" match="person" use="@firstname"/>
<xsl:variable name="doc2" select="/"/>
<xsl:template match="key('maindoc','Sal',$doc2)">
<xsl:value-of select="@firstname"/>
</xsl:template>
</xsl:stylesheet>
how come?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--