Accessing Extension Objects
I've added an object to the XsltArgume开发者_Go百科ntList. I was wondering how I could access and display it in my transformation?
xslarg.AddExtensionObject("someKey", "someValue");
However, when I transform, I wan't to be able to display "someValue".
Any idea how? Thanks.
Extension objects are not intended to be used to pass values into the stylesheet. They are used solely to provide extension functions to the stylesheet (hence "extension object"). To pass data, use <xsl:param>
and XsltArgumentList.AddParam
.
精彩评论