Article ID: 829014 - Last Review: October 1, 2003 - Revision: 2.2 BUG: XslTransform: Sorting an Empty Node Set Raises an Exception in the .NET Framework 1.1On This PageSYMPTOMSWhen you try to sort an empty node set in an XSL Transformation (XSLT) that you execute by using an instance of the System.Xml.Xsl.XslTransform
type in the .NET Framework 1.1, you may receive the following error message: System.ArgumentOutOfRangeException: Index was out of range. Must
be non-negative and less than the size of the collection. Parameter name: index
CAUSEThis problem occurs only when a white space rule has been
defined in the style sheet by using the xsl:preserve-space or the xsl:strip-space XSLT
elements. RESOLUTIONTo work around this problem, use one of the following methods:
STATUS
Microsoft has confirmed that this is a bug in the .NET Framework 1.1 implementation of the System.Xml.Xsl.XslTransform type.
MORE INFORMATIONSteps to Reproduce the Behavior
| Article Translations
|
Back to the top
