Click to See Complete Forum and Search --> : XForms & XSLT


kwilliams
01-23-2007, 04:33 PM
I'm trying to learn about the use of XForms with XSLT, and I'm having some difficulties figuring it out. My site transforms an XML and XSLT doc into a resulting HTML doc using the following ASP.NET code:
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" AspCompat="true" Debug="true" %>
<%@ import Namespace="System.Web" %>
<%@ import Namespace="System.Web.UI" %>
<%@ import Namespace="System.Web.UI.WebControls" %>
<%@ import Namespace="System.Web.UI.HtmlControls" %>
<%@ import Namespace="System.Xml" %>
<%@ import Namespace="System.Xml.Xsl" %>
<%@ import Namespace="System.Xml.XPath" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="vb" runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
xslTransform.DocumentSource = "xmldoc.xml"
xslTransform.TransformSource = "xsldoc.xsl"
End Sub
</script>
<html>
<body>
<form id="form1" runat="server">
<div id="wrapper">
<asp:Xml id="xslTransform" runat="server"></asp:Xml>
</div><!--end wrapper-->
</form>
</body>
</html>

I want to create forms for the site, and I'd like to look into using XForms for this purpose. Is it the best solution for my setup? Also, if someone could point me in the right direction to some simple XForm examples, that would be great. Thanks.

P.S. My site uses a XSLT 1.0 Processor.

kwilliams
01-25-2007, 09:07 AM
Wow, no replies. Well, I'll try again in a more straightforward manner:

1) Can I use XForms with an ASP.NET transformation of XML/XSLT docs (see code in previous post)?
2) If so, where would some good resources be of this setup?
3) If not, what would be an alternative solution?

Thanks for any help.