[Playlist] Question on XML namespaces in XSPF

Sebastian Pipping webmaster at hartwork.org
Sat Mar 3 00:02:16 UTC 2007


Ivo Emanuel Gonçalves wrote:
> On 3/1/07, Sebastian Pipping <webmaster at hartwork.org> wrote:
>> Is this playlist below valid XSPF-1 or not?
>>
>>     <?xml version="1.0" encoding="UTF-8"?>
>>     <myns:playlist version="1" xmlns:myns="http://xspf.org/ns/0/">
>>       <myns:trackList />
>>     </myns:playlist>
>>
>> The spec says the attribute "xmlns" of <playlist> must be
>> "http://xspf.org/ns/0/" which the above does not fulfill.
>> Was it meant this way? Should this be valid?
> 
> Although retarded, since it's not adding any myns-specific element, it
> is in my opinion a legal example.  However, if you were to contain
> XSPF on, say, XHTML or CMML that would be the way to go, thus it is
> valid, but probably not recommended.

-------------------------------------------------------------
I agree it should be valid but not recommended to create
such files. A parser would still have to be able to
deal with this which is why I added 5 new testcases for
namespace handling.

More details here:
https://trac.xiph.org/changeset/12610



Sebastian




More information about the Playlist mailing list