On Wed, May 19, 2010 at 4:02 AM, Sam Vilain <s...@vilain.net> wrote:

> There is also the XML Schema-driven approach. In principle, it should be
> possible to write a set of PRANG classes for the XML Schema language
> itself, and transform those to new PRANG classes. Then, you could load
> schemas for particular versions in, transform them to Perl classes, do
> the load/validate, and tackle the transformation between versions some
> other way. But that's a lot of work and who knows what hurdles lie down
> that path.

This is in fact how I'm looking at approaching RelaxNG support in
XML::Toolkit, I just lack a sufficient number of TUITS or the USD
equivalent to make it happen currently. The Generated RNG classes are
already part of the ex/ directory in XML::Toolkit though, and I've
started stubbing out the process in a branch.

One could in theory envision a tool to generate Schema based coercions
from these kinds of classes, but that's a six month or longer project
from what I can tell and probably not "useful" in any sense of the
word here.

-Chris

Reply via email to