Adds a parameter to the System.Xml.Xsl.XsltArgumentList and associates it with the namespace qualified name.
The parameter should correspond to a W3C type. The following table shows the W3C types, either XPath or XSLT, and the corresponding.NET class.
String (XPath) | |
Boolean (XPath) | |
Number (XPath) | |
Result Tree Fragment (XSLT) | |
Node Set (XPath) |
System.Xml.XPath.XPathNodeIterator XPathNavigator[] |
Node* (XPath) |
*This is equivalent to a node set that contains a single node.
If the parameter object being invoked from within the style sheet is not one of the above, it is converted according to the following rules:
CLR numeric types are converted to double.
System.Xml.XPath.IXPathNavigable types are converted to System.Xml.XPath.XPathNavigator. XPathNavigator[] is converted to System.Xml.XPath.XPathNodeIterator.
All other types throw an error.