I am currently working on tutorials ewamples in order to find how Orbeon
can help me creating XForms, and when I try the first Xforms example
from documentation I get xform tags directly in my browser, it seems
that Xforms is not processed by orbeon to generate XHtml.
 
So, I really wonder why it doesn't work, while I'm sure that I'm missing
something obvious... I need help!
 
page-flow.xml
 
<config
    xmlns="http://www.orbeon.com/oxf/controller"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    >
 
    <page id="test_hello3" path-info="/XFHello1" view="test/viewXF1.xsl"
xforms="test/xforms-model.xml"/>
 
    <!-- Not Found and Error pages -->
    <page id="not-found" path-info="/not-found"
view="/config/notfound.xml"/>
    <page id="error" path-info="/error" model="/config/errorx.xpl"/>
 
    <epilogue url=""/>
  
    <not-found-handler page="not-found"/>
    <error-handler page="error"/>
  
</config>
 
viewXF1.xsl
 
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xforms="http:/www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xsl:version="2.0"
    >
    <head>
        <title>Hello XForm1</title>
    </head>
    <body>
        <xforms:group>
             <p>Hello <xsl:value-of select="/myform/first-name"/>!</p>
             <p>
             Please enter your first name:
             <xforms:input ref="/myform/first-name"/>
             <xforms:submit>
                 <xforms:label>Greet Me !</xforms:label>
             </xforms:submit>
             </p>
         </xforms:group>
    </body>
</html>
 
xforms-model.xml
 
<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
    <xforms:instance>
        <myform>
            <first-name />
        </myform>          
    </xforms:instance>
</xforms:model>
 
The output result I get :
 
<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  
      <title>Hello XForm1</title>
      <link rel="stylesheet" href="" type="text/css"><script type="text/_javascript_" src=""></script></head>
   <body >
      <xforms:group>
         <p class="gen">Hello !</p>
 
         <p class="gen">
                   Please enter your first name:
                   
            <xforms:input ref="/myform/first-name"></xforms:input>
            <xforms:submit>
               <xforms:label>Greet Me !</xforms:label>
            </xforms:submit>
         </p>
      </xforms:group>
   </body>
 
</html>
 
 
 

I use Orbeon 2.6 with Tomcat 5.0.28 Running with JDK 1.4.2_6

Sylvain Juge
[EMAIL PROTECTED]

Reply via email to