Here are the files, they have to be in a "test" folder located in the
same folder as page-flow.xml, the structure is the same as bizdoc folder
in bizdoc example.
Regards.
Alessandro Vernet wrote:
Erik Bruchez wrote:
> - when declaring xxforms namespace in this form, the "xxforms:valid"
> attribute for inputs is changed to "xxforms_1:valid", however it
> seems that it remains in the same namespace, does it comes from
> processor used to display xml ?
Not sure about this one. It may be Saxon trying to handle a funny
namespace situation at some point. Maybe Alex can comment on whether
the XForms engine may be doing this?
I don't think I ever saw this. Sylvain, do you have a test case that
we can use to reproduce this? (E.g. resources that you could send us
attached to an email or modification to the example application that
would exhibit this behavior.)
Alex
-------------------------------------------------------
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
<config
xmlns="http://www.orbeon.com/oxf/controller"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xu="http://www.xmldb.org/xupdate"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
<!-- Files to serve directly -->
<files path-info="*.gif"/>
<files path-info="*.css"/>
<files path-info="*.pdf"/>
<files path-info="*.js"/>
<files path-info="*.png"/>
<files path-info="*.jpg"/>
<files path-info="*.wsdl"/>
<files path-info="*.html" mime-type="text/html"/>
<files path-info="*.java" mime-type="text/plain"/>
<files path-info="*.txt" mime-type="text/plain"/>
<!-- CSS generated by a pipeline -->
<page id="layout-css" path-info="/oxf-theme/orbeon-layout.cssd" model="/oxf-theme/orbeon-layout.xpl"/>
<page id="ask-name"
path-info="/XFHello2/ask"
view="test/ask-name-xform.xsl"
xforms="test/xforms-model.xml"
>
<action
when="/form/action = 'next'"
action="test/check-valid.xsl"
>
<result when="/valid = 'true'"
page="display-name">
<!-- To make Orbeon share data between pages -->
<!-- Data is here only copied but it can of course be professed -->
<xu:update select="/form/first-name">
<xu:value-of select="document('oxf:instance')/form/first-name"/>
</xu:update>
<xu:update select="/form/last-name">
<xu:value-of select="document('oxf:instance')/form/last-name"/>
</xu:update>
</result>
</action>
</page>
<page id="display-name"
path-info="/XFHello2/display"
view="test/display-name-xform.xsl"
xforms="test/xforms-model.xml">
<action when="/form/action = 'back' ">
<result page="ask-name"/>
</action>
</page>
<page id="home" path-info="/">
<action>
<result page="ask-name"/>
</action>
</page>
<!-- 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="oxf:/config/epilogue.xpl"/>
<not-found-handler page="not-found"/>
<error-handler page="error"/>
</config>
<xforms:model
xmlns:xforms="http://www.w3.org/2002/xforms"
>
<xforms:instance>
<form>
<first-name/>
<last-name/>
<action/>
</form>
</xforms:instance>
<xforms:submission method="post" />
<!-- data constraints -->
<xforms:bind nodeset="/form/first-name"
constraint="matches(.,'[a-z]{1,}')"
/>
<xforms:bind nodeset="/form/last-name"
constraint="matches(.,'[A-Z]{1,}')"
/>
</xforms:model><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"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
<head>
<title>Hello XForm2</title>
</head>
<body>
<xforms:group
ref="/form"
xxforms:show-errors="{document('oxf:instance')/form/action !=''}"
>
<table>
<tr>
<td>Please enter your first name:</td>
<td>
<xforms:input ref="/form/first-name">
<xforms:alert>
First Name must contain only one or more alphabetical characters.
</xforms:alert>
</xforms:input>
</td>
</tr>
<tr>
<td>Please enter your last name:</td>
<td>
<xforms:input ref="/form/last-name">
<xforms:alert>
Last Name must contain only one or more alphabetical characters.
</xforms:alert>
</xforms:input>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<xforms:submit>
<xforms:label>Next >></xforms:label>
<xforms:setvalue ref="/form/action">next</xforms:setvalue>
</xforms:submit>
</td>
</tr>
</table>
</xforms:group>
<p>
<f:xml-source xmlns:f="http://orbeon.org/oxf/xml/formatting">
<xsl:copy-of select ="/*" />
<xsl:copy-of select ="document('oxf:instance')" />
</f:xml-source >
</p>
</body>
</html>
<xsl:transform
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:xu="http://www.xmldb.org/xupdate"
>
<xsl:template match="/form">
<valid>
<xsl:value-of select="not(//@xxforms:valid = 'false')"/>
</valid>
</xsl:template>
<!--
<xu:update select="/form/valid">
<xu:value-of select="not(//@xxforms:valid = 'false')"/>
</xu:update>
<xsl:template match="/form">
<xsl:copy-of select ="/*" />
</xsl:template>
-->
</xsl:transform>
<!-- <xsl:value-of select="not(//@xxforms:valid = 'false')"/> --><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"
xmlns:f="http://orbeon.org/oxf/xml/formatting"
xsl:version="2.0"
>
<head>
<title>Hello XForm2</title>
</head>
<body>
<!-- -->
<xforms:group
ref="/form"
>
<p>
Hello
<i>
<xsl:value-of select="/form/first-name"/>
<xsl:value-of select="/form/last-name"/>
</i> !!
<xforms:submit>
<xforms:label>Back</xforms:label>
<xforms:setvalue ref="action">back</xforms:setvalue>
</xforms:submit>
</p>
</xforms:group>
<p>
<f:xml-source>
<xsl:copy-of select ="/*" />
</f:xml-source >
</p>
</body>
</html>