Re: Loading an external file of index
I've tried your sample using xalan and it complains.
The code is :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:key name="mysetofkeys" match="KEYBASE/KEY" use="@NAME"/>
<xsl:variable name="keyrefname" select="@LINKEND" />
<b><xsl:value-of select="key('mysetofkeys', $keyrefname)/ACRONYM" /></b>
And the error is, at runtime transformation :
============================= Transforming... XPATH: Can not convert #UNKNOWN to a NodeList! Xalan: was not successful. XSLProcessor: done
Any idea ?
At 12:29 22/06/2000 +0100, you wrote:
Unfortunately, I know from struggling with some fairly recent questions that this doesn't work. You can't use the document() function within the 'match' attribute of xsl:key. Instead, define the key as if the input document was the one with the keys in, at the top level of the stylesheet:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format