[Playlist] DTD for XSPF

Sebastian Pipping webmaster at hartwork.org
Sun Dec 9 15:36:53 UTC 2007


Hans Engel wrote:
> Hi,
> I just finished developing a DTD (Document Type Definition) for XSPF to
> use. This way, a doctype can be declared in each XSPF file and be more
> easily validated.
> 
> You can download the doctype here:
> 
> http://engel.uk.to/etc/xspf.dtd

Had a first look. I think the attribution element must be
"(identifier*,location*)" instead? In general I'm not sure
how useful a DTD file will be, as we won't be able to express
100% XSPF here as it seems. We could go the same way as with
XSD before: offer the file for download but very clearly mark
and state that this is not "the truth". If we want to do that
the file needs some license info (CC-BY-SA/2.5 since you
mentioned the Relax NG schema as your original source).



> To reference this doctype in your XSPF files, insert this line before
> "<?xml":
> 
> <!DOCTYPE playlist PUBLIC "XSPF" "http://engel.uk.to/etc/xspf.dtd">

Not sure if that is a good idea, at least not with this path.
We should put it on xspf.org in any case.



Sebastian



More information about the Playlist mailing list