Hi.
Tried that and it still fails.
Transscript from ASP.NET posting
At 12/6/2004 3:46:03 AM a message was posted to a thread you were tracking.
--------------------------
Re: XsltArgumentLis t not working with ASP:XML control by madladuk If I add
this to the xsl sheet when i call the function whch basically returns a
string nothing is shown in the html.
<xsl:styleshe et
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:user="urn :my-scripts"
xmlns:msxsl="ur n:schemas-microsoft-com:xslt"
xmlns:dt="urn:s chemas-microsoft-com:datatypes"
xmlns:util="urn :util"
version="1.0">
If I call the funciton as util:sayhelloal l then nothing is shown and no
error is produced. When I use the debugger the function is never called. If
i use sayhelloall() then the following error is received.
Server Error in '/inSight_200' Application.
--------------------------------------------------------------------------------
Cannot find the script or external object that implements prefix 'util'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Xml.Xsl. XsltException: Cannot find the script or
external object that implements prefix 'util'.
Source Error:
[XsltException: Cannot find the script or external object that implements
prefix 'util'.]
System.Xml.Xsl. XsltCompileCont ext.ResolveFunc tion(String prefix, String
name, XPathResultType[] argTypes) +283
System.Xml.XPat h.XsltFunction. get_Function() +126
System.Xml.XPat h.XsltFunction. ReturnType() +11
System.Xml.XPat h.XPathNavigato r.Evaluate(XPat hExpression expr,
XPathNodeIterat or context) +70
System.Xml.Xsl. Processor.Value Of(ActionFrame context, Int32 key) +52
System.Xml.Xsl. ValueOfAction.E xecute(Processo r processor, ActionFrame frame)
+54
System.Xml.Xsl. ActionFrame.Exe cute(Processor processor) +24
System.Xml.Xsl. Processor.Execu te() +78
System.Xml.Xsl. XslTransform.Tr ansform(IXPathN avigable input,
XsltArgumentLis t args, TextWriter output, XmlResolver resolver) +74
System.Web.UI.W ebControls.Xml. Render(HtmlText Writer output) +155
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +241
System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer) +72
System.Web.UI.C ontrol.Render(H tmlTextWriter writer) +7
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +241
System.Web.UI.P age.ProcessRequ estMain() +1880
--------------------------
To view the complete thread and reply, please visit:
http://www.asp.net/Forums/ShowPost.a...&PostID=764762
You were sent this email because you opted to receive email notifications
when someone responded to this thread. To unsubscribe to this thread either:
1. Visit the above URL and uncheck 'Email me when someone replies...'
2. Visit your user profile page and uncheck 'Enable email tracking'
Thanks,
ASP.NET Forums Moderation Team
Note, moderation is provided by the ASP.NET developer community. Microsoft
is not responsible for, shall have no liability for and disclaims all
warranties whatsoever, expressed or implied.
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!P LEASEtkachenko. com> wrote in message
news:Oe******** ******@tk2msftn gp13.phx.gbl...
Paul wrote:
Dim xslArg As Xml.Xsl.XsltArg umentList = New Xml.Xsl.XsltArg umentList
Dim util As Object = New test1
xslArg.AddExten sionObject("urn :util", util)
xmlGridData.Doc umentContent = ds.GetXml
xmlGridData.Tra nsformArgumentL ist = xslArg
xmlGridData.Tra nsformSource = "paul.xsl"
XSL snippet:
<xsl:value-of select="util:sa yhelloall"/>
As you are talking about extension function, most likely you mean
<xsl:value-of select="util:sa yhelloall()"/>
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com