Hello Robert,

there exists a bug with patch: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19104

Joerg

Jeroen Cranendonk wrote:
(sorry, posted last mail with wrong subject :)

Hi,

I have a question about the usage of schematron languages within
Cocoon/XMLForms.

I have an AddresBean which I use as the XMLForm model. It containts 2
variables:
- street (also getter and setter)
- housenumber (also getter and setter)

I want to show a message behind a 'street' input field in my form when the
'housenumber' field is empty.
I've tried to do it with, "../housenumber", but this doesn't work! See the
code below:

   <pattern name="Old Address Pattern" id="addressPattern">
      <rule context="/street">
         <assert test="string-length(../housenumber) &gt; 0">Address is
required.</assert>
      </rule>
   </pattern>

Would someone have a sollution of how to accomplish this?
Or could someone explain why this schematron statement doesn't work ?

Cheers!

--
Many thanks in advance,
 Robert Kromkamp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to