You cannot mix <error> and <errors>.

Sorry about the completely useless validation error message, this is due to problems in libxml with RELAX NG schemas. We're looking for a solution, and the situation will improve again, so that the final 1.0 release really gives meaningful error descriptions.

- David


On 20.11.2008, at 14:53, John Schmidt wrote:

hi david and veikko,

i am using the 1.0 beta5.

this is the validation code im am using (its the first 2 validators from
the tut):
--------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations
        xmlns="http://agavi.org/agavi/config/parts/validators/1.0";
        xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0";
        parent="%core.module_dir%/Public/config/validators.xml"

        <ae:configuration>

                <validators method="write">


                        <validator class="number">
                                <argument>post_id</argument>
                                <error>Invalid post ID</error>
                    </validator>

                <validator class="string" name="email_length">
                                <argument>email</argument>
                                <parameter name="max">255</parameter>
                                <error>The email address can't be empty</error>
                                <errors>
                                        <error for="max">The supplied email address 
is too long</error>
                                </errors>
                </validator>

                </validators>

        </ae:configuration>
</ae:configurations>
--------------------------------------------------------------------------


cheers,

john



Any chance you could post the validation XML source?

- David


On 19.11.2008, at 16:06, John Schmidt wrote:

hi list members,

im getting an AgaviParseException when using the agavi tutorial
(validation).

---------------------------------------------------------------
RELAX NG validation with
"C:\xampp\php\PEAR\agavi/config/rng/validators.rng" failed due to the
following errors:

Line 0: Extra element validators in interleave
Line 3: Invalid sequence in interleave
Line 3: Element configuration failed to validate content
Line 0: Extra element configuration in interleave
---------------------------------------------------------------

is was using the example rules from the tutorial.

any idea what the problem might be?

libxml2 version is 2.6.26
php version is 5.2.5

thanks a lot,

john






_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users



_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to