Lukas,

My solution is more of a proof of concept. It shows that YAML validation is
possible in PHP, but it has a few drawbacks:
- error reporting is hard because the error messages come from the
transformed XML, without any trace of the original YAML line
- the transformation depends on XSLT, which may not be installed by default

Perhaps it would be better to invest into a real YAML schema, 'à la'
Kwalify. When I looked at the ruby code back then, it was almost impossible
to port to PHP, but since then PHP 5.3 introduced new features, so it might
be an option again.

As for my investing time in Symfony2, I'm afraid that won't be possible. I
am already committed to Propel, and I have a family :)

Cheers,

François


2010/9/29 Lukas Kahwe Smith <[email protected]>

>
> On 25.09.2010, at 11:06, Lukas Kahwe Smith wrote:
>
> >
> > On 25.09.2010, at 11:01, Francois Zaninotto wrote:
> >
> >> Lastly, if syntax and grammar are still strong points against YAML, it's
> not impossible to improve the error messages in the parsing (to help with
> syntax), or to validate a YAML file against a schema (to help with grammar).
> >>
> >> In conclusion: YAML for default.
> >
> > yeah if we could validate YAML properly, then one of the main drawbacks
> is removed. not sure why i never googled this before, but someone seems to
> have put a lot of thought into being able to cross-compile yaml to xml to be
> able to use XSD for validation:
> >
> http://redotheweb.com/2008/09/09/validating-a-yaml-file-against-a-schema-in-php/
>
>
> @Francois: Are you motivated to integrate your solution into Symfony2?
>
> regards,
> Lukas Kahwe Smith
> [email protected]
>
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to