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: XsltArgumentList 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:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:user="urn:my-scripts"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:dt="urn:schemas-microsoft-com:datatypes"
xmlns:util="urn:util"
version="1.0">
If I call the funciton as util:sayhelloall 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.XsltCompileContext.ResolveFunction( String prefix, String
name, XPathResultType[] argTypes) +283
System.Xml.XPath.XsltFunction.get_Function() +126
System.Xml.XPath.XsltFunction.ReturnType() +11
System.Xml.XPath.XPathNavigator.Evaluate(XPathExpr ession expr,
XPathNodeIterator context) +70
System.Xml.Xsl.Processor.ValueOf(ActionFrame context, Int32 key) +52
System.Xml.Xsl.ValueOfAction.Execute(Processor processor, ActionFrame frame)
+54
System.Xml.Xsl.ActionFrame.Execute(Processor processor) +24
System.Xml.Xsl.Processor.Execute() +78
System.Xml.Xsl.XslTransform.Transform(IXPathNaviga ble input,
XsltArgumentList args, TextWriter output, XmlResolver resolver) +74
System.Web.UI.WebControls.Xml.Render(HtmlTextWrite r output) +155
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Page.ProcessRequestMain() +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!PLEASEtkachenko.com> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
Paul wrote:
Dim xslArg As Xml.Xsl.XsltArgumentList = New Xml.Xsl.XsltArgumentList
Dim util As Object = New test1
xslArg.AddExtensionObject("urn:util", util)
xmlGridData.DocumentContent = ds.GetXml
xmlGridData.TransformArgumentList = xslArg
xmlGridData.TransformSource = "paul.xsl"
XSL snippet:
<xsl:value-of select="util:sayhelloall"/>
As you are talking about extension function, most likely you mean
<xsl:value-of select="util:sayhelloall()"/>
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com