You have an incorrect namespace declaration in viewXF1.xsl:

Replace:

xmlns:xforms="http:/www.w3.org/2002/xforms"

with:

xmlns:xforms="http://www.w3.org/2002/xforms";

-Erik

Sylvain Juge wrote:


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="/config/epilogue.xpl"/>
<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="/test/oxf-theme/orbeon-layout.cssd" type="text/css"><script type="text/javascript" src="/test/oxf-theme/style/theme.js"></script></head>
<body onload="document.body.innerHTML += ''">
<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] <mailto:[EMAIL PROTECTED]>
------------------------------------------------------------------------



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to