Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mani 5 posts 25 karma points
    Nov 04, 2010 @ 19:33
    Mani
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 04, 2010 @ 22:14
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft