I get this error then i use the visualizer, but i dont know if i do it right, i marked all the text and click on the visualizer, and choose the content page where the link shoud be.
Error parsing the XSLT:
System.Xml.Xsl.XslTransformException: Extension object 'urn:umbraco.library' does not contain a matching 'GetMedia' method that has 1 parameter(s). at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind() at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags) at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters) at umbraco.presentation.umbraco.developer.Xslt.xsltVisualize.visualizeDo_Click(Object sender, EventArgs e)
Error: Error parsing XSLT file
Yesterday i made this xslt file, and it takes a image and links it to a PDF page.
But when i call it from the macro, it gives me this error on my page, where the picture shoud be:
Error parsing XSLT file: \xslt\AddData.xslt
This is the line that i use in my template:
I hope you can help me.
HI Peder,
Can't really see an error in your xslt, do you get output when using the xslt visualizer? And what do you get if you add
(May have to look at the source of the page to see the actual xml)
Cheers,
/Dirk
I get this error then i use the visualizer, but i dont know if i do it right, i marked all the text and click on the visualizer, and choose the content page where the link shoud be.
Error parsing the XSLT:
System.Xml.Xsl.XslTransformException: Extension object 'urn:umbraco.library' does not contain a matching 'GetMedia' method that has 1 parameter(s). at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind() at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags) at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters) at umbraco.presentation.umbraco.developer.Xslt.xsltVisualize.visualizeDo_Click(Object sender, EventArgs e)
GetMedia takes two arguments. Second is bool Deep.
I am new to umbraco, so i dont now what you mean, do you have a link i can look at ?
Signature of GetMedia() method:
You can either get a media item for a single node (returns a XPathNodeIterator with just a single node) or for a node and all childnodes (deep=true())
Cheers,
/Dirk
Ok so what i have to do is to change:
to
but i am a little confused, where do i put in this line in my xslt ? i have tryed to look on the forum but cant find it.
I tryed to change my xslt to this, but i still get the error on my page.
Product1Link is still missing the 2nd argument to GetMedia ...
This is not because, i want yoo to tell me it all, but do you now where i can find an explanation or an excample ?
i have tryed to find it, but i cant find it.
But anyway thanks for the help :)
I got it to work :) and thanks but i just have one more thing, the link is working, but there is some numbers above it, how do i rid of them ?
But big thanks to Kenneth and Dirk.
is working on a reply...