Re: genre browser

"David Hough" <[email protected]> Fri, 08 Apr 2005 19:00:48 +0100
Newsgroups gmane.comp.audio.zinf.devel
Message-ID <[email protected]>
On Thu, 07 Apr 2005 23:22:08 +0100, kristian kvilekval <[email protected]>=
 =20
wrote:

>
> Dave does your new XML tree allow
> one to browse by genre?
>
> i.e.
>
> <node text=3D'Genre' icon=3D'zinf-Genre' url=3D'zinf://genre' />
>    <list type=3D'url'>
>    </list>
> </node>
>

Yeah, any valid url that the musicdb can understand is usable, so you can=
 =20
effectively sort by anything including genre. However the snippet you gav=
e =20
probably won't give the expected results as it's actually equivalent too,

<node text=3D'Genre' icon=3D'zinf-genre'>
	<list url=3D'zinf://url' />
	<list url=3D'zinf://genre' />
</node>

This is because when you specify a url for a node it checks if its =20
expandable, and if so appends a child list with that url. If you just =20
specify a type for a list whose parent is a node and not a list, it =20
assumes you want a list of all those items, so converts it too =20
"zinf://type", hence the url=3D'zinf://url'.

What you actually want is

<node text=3D'Genre' icon=3D'zinf-genre'>
	<list url=3D'zinf://genre'>
		<list type=3D'url' />
	</list>
</node>


And yes, the exact syntax of the XML could probably do with some work.

Cheers,
David
--=20
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick