Hi, I am desperate and feeling myself the dumbest human being in the world...
I am trying to do doing things the way MultiStore manual tells me to do (http://manual.aspdotnetstorefront.co...ackages.aspx):
<xsl:variable name="productid"><xsl:value-of select="SFProductId" disable-output-escaping="yes" /></xsl:variable>
<xsl:variable name="mylink"><xsl:value-of select="aspdnsf:ProductLink($productid, '', 0)" disable-output-escaping="yes"/></xsl:variable>
<a href="{$mylink}"><xsl:value-of select="Name" disable-output-escaping="yes" /></a>
But it doesn't work, instead it crashes my XMLPackage and clearly the problem is in the piece in red, because when I remove it the XMLPackage doesn't crashes.
When it crashes it asks me to look at error log. Looking at the error log I have:
Page URL:/Web/t-custom-remaining-parts.aspx
Source:System.Data.SqlXml
Message:Cannot find the script or external object that implements prefix 'http://www.DNSF2.com'.
Stack Trace:
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltL ateBoundFunction(String name, String namespaceUri, IList`1[] args)
at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-microsoft-com:xslt-debug}namespaces) in C:\AspDotNetStorefront\Web\images\custom.remaining-parts.xml.config_store.runtime.xsl:line 130
at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator , Double , Double )
at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRu ntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQuer yRuntime {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(IXPathNavigabl e contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigabl e contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPa thNavigable input, XsltArgumentList arguments, Stream results)
at AspDotNetStorefrontCore.XmlPackage2.TransformStrin g()
What am I doing wrong????