Wrox Programmer Forums
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2007, 11:29 AM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default XForms

It was suggested that I move this post from the XSLT forum into the XML forum, so here it goes:

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>
</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
 
Old March 4th, 2007, 08:32 PM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Hi KWilliams,

You can use XML and DOM to create interactive forms with ASP. No need to buy any addition software.

Good luck






Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT with Xforms li72 XSLT 1 June 12th, 2007 05:19 AM
How to validate XHTML with XForms? boen_robot XML 0 June 2nd, 2007 03:24 PM
XForms & XSLT kwilliams XSLT 3 January 25th, 2007 11:28 AM
XForms mai ry Biztalk 0 May 18th, 2006 04:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.