Subject: Re: [xsl] XSLTC key() with for-each Problem From: Troy Thibodeaux <troythibodeaux@xxxxxxx> Date: Fri, 12 Jul 2002 17:13:21 -0500 |
I was afraid that might be the answer. Thanks for taking the time to consider my problem.
Is there any other way to force the key() function to refer to the nodes in $old_file? The name of the old file is being passed into the stylesheet as a parameter, so I don't believe it can be directly referenced in <xsl:key>.
<xsl:key> works per XML tree, you don't specify a special one (or a document) in the key-declaration. With your <xsl:for-each select="$oldfile"> you only change the context document for the key to work on.
So there is no work around if there is really a bug in XSLTC. Either you use the inefficient method or must wait until the bug is fixed.
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLTC key() with for-each, Joerg Heinicke | Thread | RE: [xsl] XSLTC key() with for-each, Michael Kay |
Re: [xsl] XSLTC and namespaces, Joerg Heinicke | Date | [xsl] XSLT Programmer, Paul Prescod |
Month |