On 29.09.2010, at 10:27, Francois Zaninotto wrote: > 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
yeah, i guess mapping the errors back to the original yaml line is non trivial, but something that could at least be attempted. also in many cases just outputting the offending xml line will probably be enough for people to be able to find the line in the yaml file. its even a bit non trivial for XML too, since i guess it validates the xml after having replaced parameter placeholders. > - the transformation depends on XSLT, which may not be installed by default yeah. > 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 you point out on your own blog post, the nice thing about XSD is that its already a fairly well known standard. plus it would give people the option of still using XML and still be able to get validation. then again it could just mean that someone could try to implement applying XSD validation directly on yaml aka interpreting the XSD rules and then checking the yaml if it passes. we might just support a subset of XSD for the time being which might cover most use cases already .. not sure .. just thinking allowed here. > 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 :) fair enough. 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] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
