Am trying to call umbraco.library.GetXmlNodeByXPath("//descendant::Blog") in an XSLT extension that I'm debugging in Visual Studio. However, GetXmlNodeByXPath refuses to work for any XPath expression I've tried.
I'm not using $currentPage :-)
I'm not using umbraco.library or any other extension methods inside the XPath expression.
I've tried the following:
"*//Blog";
"Blog";
"//Blog";
"*//descendant::Blog";
"//descendant::Blog"
And it constantly returns all the XML from the <root id="-1"> node downwards - the entire contents of the umbraco.config file.
GetXmlNodeByXPath in .NET
Hi all,
Am trying to call umbraco.library.GetXmlNodeByXPath("//descendant::Blog") in an XSLT extension that I'm debugging in Visual Studio. However, GetXmlNodeByXPath refuses to work for any XPath expression I've tried.
I've tried the following:
And it constantly returns all the XML from the <root id="-1"> node downwards - the entire contents of the umbraco.config file.
Any thoughts?
Ta,
Benjamin
Edit: It's fixed now :-) although I don't know what I did to fix it...
is working on a reply...