I am new to umbraco, while upgrading from umbarco 2.+ to 4.5.2, everything is working fine except few things XSLT error, and no CSS is applying.
When I browse the site throwing the error 'Errorparsing XSLT file: \xslt\TopNavigation.xslt ' ,
in admin mode when i try to save throwing the error
Error occured
System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be
added to the parent element after a text, comment, pi, or sub-element node has
already been added. at
System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError(XPathNodeType
constructorType) at
System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs(XPathNodeType
rootType) at
System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute(String prefix, String
localName, String ns) at (XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent) at
(XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent) at
(XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent) 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) at
System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input,
XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input,
XsltArgumentList arguments, TextWriter results) at
umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String
oldName, String fileContents, Boolean ignoreDebugging)
Do you know if you're running the legacy XML schema or the new XML schema? I think that you're probably running the new one. Since your XSLT files are build with the old schema you should go to the config folder on your umbraco installation and find the umbracosettings.config file and change the XML schema to legacy.
Error parsing XSLT file: \xslt\TopNavigation.xslt
HI all,
I am new to umbraco, while upgrading from umbarco 2.+ to 4.5.2, everything is working fine except few things XSLT error, and no CSS is applying.
When I browse the site throwing the error 'Error parsing XSLT file: \xslt\TopNavigation.xslt ' ,
in admin mode when i try to save throwing the error
Error occured
System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError(XPathNodeType constructorType)
at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs(XPathNodeType rootType)
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute(String prefix, String localName, String ns)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, IList`1 parent)
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)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
please help me.
Thansk in advance.
Hi Mani
Do you know if you're running the legacy XML schema or the new XML schema? I think that you're probably running the new one. Since your XSLT files are build with the old schema you should go to the config folder on your umbraco installation and find the umbracosettings.config file and change the XML schema to legacy.
I think that shold do it.
/Jan
is working on a reply...