System.Xml.Xsl.XslLoadException: Expected end of the expression, found '('. $currentPage/local-name -->(<-- ) = 'contactus' An error occurred at \635053395468991437_temp.xslt(45,6). at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
(The difference between local-name() and name() is that if you ran them on a namespaced element - e.g. <xsl:template>, local-name() would return "template" whereas name() would return "xsl:template")
how to check Page name in xslt
hello friends
I want one page whose name is contactus that i want to check the using condition with this page like
if current page name='contact us'
condition
so which kind of code that we can write that direct page name.....
Hi Shine,
Try this, If I remember right this will do it for you.
/Dennis
error
Error occured
System.Xml.Xsl.XslLoadException: Expected end of the expression, found '('.
$currentPage/local-name -->(<-- ) = 'contactus' An error occurred at \635053395468991437_temp.xslt(45,6).
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Try this instead and see if it works.
/Dennis
Hi shine
Dennis' 2nd answer is correct - here's a clarification:
In the Umbraco.config XML file, your 'contact us' page will look something like this:
(I've left out a lot of attributes for simplicity)
Here's what a couple of selections will return:
/Chriztian
is working on a reply...