Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT 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 23rd, 2007, 06:29 PM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default XForms & XSLT

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:
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 January 25th, 2007, 11:07 AM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

KWilliams
 
Old January 25th, 2007, 11:23 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Sadly this forum doesn't have a very stable membership. People come to ask a question and then disappear. As a result, not many people are answering questions, and if those people happen to be busy on a particular day, it's not uncommon to get no answer. I try to answer XSLT questions when I can; but for some reason the forum seems to attract a high proportion of queries that are specific to Microsoft technologies, and I'm no expert in those areas.

You can use XSLT to generate any XML, HTML, or XHTML document and that of course includes one that uses XForms elements. You can do that whether or not your XSLT transformation is driven from ASP pages. But of course, there's no point generating XForms elements unless there is an XForms processor somewhere to handle them. That can be a client-side or a server side XForms engine - but if you want to know more about XForms, then an XSLT forum isn't the best place to ask.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old January 25th, 2007, 11:28 AM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Michael,

Thanks for the quick reply. I'm just trying to get my mind around what the best solution would be to create and edit forms with my setup. I'll add my post to the XML forum per your suggestion. Thanks Michael.

KWilliams





Similar Threads
Thread Thread Starter Forum Replies Last Post
xml&xslt coolferrari XSLT 2 September 20th, 2007 10:30 AM
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 kwilliams XML 1 March 4th, 2007 08:32 PM
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.