XSLTForms/ASP.NET - Wikibooks, open books for an open world
From Wikibooks, open books for an open world
In ASP.NET, XSLTForms can be used server-side to process an XForm by invoking the asp:Xml Control, for example as follows:
<asp:Xml ID="Xml1" runat="server" DocumentSource="~/myform.xforms" TransformSource="~/xsltforms/xsltforms.xsl" EnableViewState="False" ></asp:Xml>
The ASP.NET DOM interface can be used to process submissions from the form, thus:
<%@ Page Language="C#" %> <% System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.Load(Request.InputStream); // process your xml here.... %>
Sources: This page was originally drafted based on information from William Velasquez, to whom thanks.