SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

error doing xslt transform, document() permission

Last post 04-22-2007 11:19 AM by MattWard. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-20-2007 12:19 AM

    • apb
    • Not Ranked
    • Joined on 04-19-2007
    • Posts 2

    error doing xslt transform, document() permission

     I am trying to use "run XSLT"  , it is failing. The xslt has

    select="document('config.xml')/configs/config[@name=..

    I guess this is some permissioning  problem. Is this a bug or is there a way to allow this to run?

    /Andy

    -------------------------------------------------------------------- 

    SharpDevelop Version : 2.1.0.2429
    .NET Version         : 2.0.50727.42
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : English (United Kingdom) (en-GB)
    Current UI language  : en-US
    Working Set Memory   : 67068kb
    GC Heap Memory       : 19062kb


    Exception thrown:
    System.Xml.Xsl.XslTransformException: Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at (0,0).
       at System.Xml.Xsl.Runtime.XmlQueryRuntime.ThrowException(String text)
       at snipsnap(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
       at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
       at System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRuntime 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(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
       at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, XmlWriter results)
       at ICSharpCode.XmlEditor.XmlView.Transform(String input, String transform)
       at ICSharpCode.XmlEditor.XmlView.RunXslTransform(String xsl)

    Filed under: ,
  • 04-22-2007 11:19 AM In reply to

    Re: error doing xslt transform, document() permission

    Added bug report.
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.