[Playlist] Schema files and element order
Sebastian Pipping
webmaster at hartwork.org
Sun Feb 18 16:16:04 UTC 2007
Lucas Gonze wrote:
> Ok, so it's really not possible to do an XML Schema where the element
> order doesn't matter. That's significant.
>
> In that case I'm leaning towards abolishing or at least aggressively
> deprecating the XSD, since it declares stuff invalid which is really
> legal, and that will end up creating a separate dialect where element
> order matters.
--------------------------------------------------------------------------
I agree. I think we should
* leave the old XSD (0.2, which allowed to little) online
and mark it deprecated
* update the Relax NG file to the new one (0.5) if it fully passes
the current testsuite. I will have to check this.
--------------------------------------------------------------------------
> However, performance is a critical issue. Yahoo is using the schema to
> validate input files before storing them, which is (1) totally
> reasonable and (2) performance intensive. To switch over to RNG the
> performance would have to be comparable.
--------------------------------------------------------------------------
It depends on how Yahoo is matching the schema against the XSPF file.
If they call an external tool they could see if switching to
Relax NG and XMLStarlet is fast enough. Otherwise if their application
is written in C++ they could use libSpiff for validation when the next
version (which will BSD not LGPL) comes out.
Sebastian
More information about the Playlist
mailing list