Transforming xml to html using xslt - InfoPath Dev
in

InfoPath Dev

Transforming xml to html using xslt

Last post 04-11-2012 05:06 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-11-2012 12:19 AM

    Transforming xml to html using xslt

    Hi,

    I am working on Infopath 2010 and I try to transform Infopath form to html using below code

     

    SPFile file = folder.Files["Infopathform.xml"];

      byte[] contents = file.OpenBinary();
    string xml = Encoding.UTF8.GetString(contents);

    XmlDocument doc = new XmlDocument();
    System.IO.StringWriter sw = new System.IO.StringWriter();  

    doc.LoadXml(xml);
    transform.Transform(doc.CreateNavigator(), new XsltArgumentList(),sw);
    htmlText = sw.ToString();

    But I am getting below exception when executing transform.

    Cannot find the script or external object that implements prefix 'http://schemas.microsoft.com/office/infopath/2006/xslt/User'.

    Please help me to resolve this issue.

     

    Thanks,

    Siva


  • 04-11-2012 05:06 AM In reply to

    Re: Transforming xml to html using xslt

    Where is the XSLT you're using coming from?  It sounds like it's using custom InfoPath functions that aren't provided by standard XSLT.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.