Hi Damon,

I tried to reproduce this behavior without success. By adding a debug
attribute on the instance input of oxf:/ca-traffic/model.xpl, I get
the following XML when entering a wrong highway number:

<highway>abc
<v:error xmlns:v="http://orbeon.org/oxf/xml/validation";
message="Error &quot;avc&quot; does not satisfy the &quot;integer&quot; type(schema: highway.rng)"
system-id="oxf:/ca-traffic/xforms.xml"
line="3" column="19"/>
</highway>



Which version of OXF are you using? Can you please send me the v:error element you are getting?

Thanks,
Julien
Damon Rand wrote:

Howdi,

I have been trying to decorate an xforms instance with errors when validation fails.
I have this in <xforms>:


<input>
<team>aa</team>
</input>
I am using this as in the <model>.


<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";>
  <!--
        Used to debug the xforms instance
    -->
  <p:param type="input" name="instance" debug="m-input"/>
  <p:param type="output" name="instance" debug="m-output"/>
  <p:processor uri="oxf/processor/validation">
    <p:input name="config">
      <config>
        <decorate>true</decorate>
      </config>
    </p:input>
    <p:input name="schema" href="oxf:/mockups/teamimages/schemas/newalbum.xsd"/>
    <p:input name="data" href="#instance"/>
    <p:output name="data" ref="instance"/>
  </p:processor>
</p:config>

And it correctly adds

<v:error xmlns:v="http://orbeon.org/oxf/xml/validation"; message="Error the length of the value is 4, but the required minimum is 5.(schema: null)" line="0" column="0"/>

So far so good.

But when I don't have a <model> and use this in the <xforms> instead:
<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms"; schema="oxf:/mockups/teamimages/schemas/newalbum.xsd">
<xforms:instance>


I expected exactly the same behavior as above but in fact it decorates in a different manner (using attributes) and it doesn't seem to decorate as comprehensively as the explicit processor??


Damon.


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to