BUG: Position() and Last() XPath Functions Are Ignored When You Use Them as XSLT Function Arguments (324033)
The information in this article applies to:
- Microsoft XML Classes (included with the .NET Framework 1.0)
This article was previously published under Q324033 SYMPTOMS
The position() and last() XPath functions are ignored when you use them directly as XSLT function (standard, script, and extension function) arguments in XPath query expressions that are used in XSLT style sheets.
CAUSE
The XPath processor executes the XSLT functions before it sets the context of the position() and last() XPath functions.
RESOLUTION
Use XSLT variables to store the values that these functions return. You can then use the XSLT variables as the XSLT function arguments in XPath query expressions that are used in the style sheet.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbbug kbpending KB324033 |
---|
|