Error message in XSLT with C# extension function
Posted
by iHeartGreek
on Stack Overflow
See other posts from Stack Overflow
or by iHeartGreek
Published on 2010-06-15T16:03:57Z
Indexed on
2010/06/15
16:12 UTC
Read the original article
Hit count: 215
Hi!
I am received the following error while trying to implement a C# extension function in XSLT.
Extension function parameters or return values which have CLR type 'Char[]' are not supported.**
code:
<xsl:variable name="stringList">
<xsl:value-of select="extension:GetList('AAA BBB CCC', ' ')"/>
</xsl:variable>
<msxsl:script language="C#" implements-prefix="extension">
<![CDATA[
public string[] GetList(string str, char[] delimiter)
{
...
...
return str.Split(delimiter, StringSplitOptions.None);
}
]]>
</msxsl:script>
Can someone explain this error message and how to get past it?
Thanks!
© Stack Overflow or respective owner