Hi all,
I have an InfoPath 2007 (client mode) solution in place. The template is split into multiple views - Sales, Compliance, etc. If I attempt to convert the XML of a live document using the Sales.xsl , the error message is as follows:
Error in XPath expression Unknown function - Name and number of arguments do not match any function signature in the static context - 'http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument:get-Role'
The section in the XSL which leads to this error message is:
<xsl:when test="xdXDocument:get-Role() = "Sales" or xdXDocument:get-Role() = "Legal" or xdXDocument:get-Role() = "Sales COO" or xdXDocument:get-Role() = "Financial Crime"">DISPLAY: none</xsl:when>
I did the above using Altova XML SPY. Similar error while using VS.NET XML menu option for doing a XSLT transformation. I have not yet attempted to do this programmatically. It is obvious to me that the XSLT is unabel to resolve the references to the custom functions. I just want to hear from the experts whether it is possible at all to use the views to do a conversion of the document XML as opposed to writing a XSLT from scratch?
My objective - produce a light weight read-only view of the InfoPath document without having to open up the client app and render the output to match the views within Infopath.
thanks,
Saurabh