[Playlist] DTD for XSPF
Sebastian Pipping
webmaster at hartwork.org
Mon Dec 10 06:34:19 UTC 2007
Ivo Emanuel Gonçalves wrote:
> Well, technically, I believe it's invalid to add a DTD to current XSPF
> files as the spec does not specify anything related with it. And it's
> not an "extension", it's a parent XML statement right there at the top
> of the file, which means it's important and the spec should mention if
> DTDs are allowed.
>
> In theory, if we would want to use DTD in XSPF, we would have to
> either change the spec to allow it, ignore that the spec does not
> state anything to do with it, and (after doing one of those) ask
> Sebastian to make libSpiff not break with DTD, because DTDs are likely
> to break applications out there.
>
> Then, while not related with my original concern, there's the other
> concern with DTD criticism, chief among such that DTD does not support
> new features of XML (namespaces come to mind).
I think adding a DTD that correctly defines XSPF would be no problem,
i.e. not require a change in the spec. That would be a candidate
for the notes wiki page in my eyes if it was possible...
>From my current understanding it seems that what we can express with
DTD will be neither a super- nor a subset. For the doctype thing
it should be superset so we don't make valid XSPF files as invalid.
That said my vote is against the doctype line. I'm not even sure
if a DTD file has any use at all then.
> That said, Hans' DTD may be useful for applications as a sort of
> backup/template to examine playlists and perhaps not as an addition to
> files.
Please explain that further, not sure what you mean.
Sebastian
More information about the Playlist
mailing list