patchmldonkey, a multi-networks file-sharing client - Patches: patch #4482, xslt for transforming some...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4482: xslt for transforming some external input into some xml that can be easily parsed

Submitter:  Amorphous <amorphous>
Submitted:  Sat 01 Oct 2005 07:50:50 PM UTC
   
 
Category:  None Priority:  3 - Low
Status:  Postponed Assigned to:  None
Open/Closed:  Closed

Thu 06 Oct 2005 01:08:13 PM UTC, comment #5: 

Moving this patch to the task tracker.
Let MLDonkey depend on external binaries is IMHO not a good option,
having in mind the numerous platforms MLDonkey works on.
Working the "Unix way" on Windows is not easy;-)
Also I would propose to put link parsing functionality into an
external application like a GUI to let MLDonkey only do the
downloading, this would be more like the "Unix way".

spiralvoice <spiralvoice>
Group administrator
Sun 02 Oct 2005 02:40:42 AM UTC, comment #4: 

The clean way is the mldonkey way, like every other lib it currently uses.  Mldonkey doesn't spawn external binaries AFAIK.

These new search types and their search results must be available to all interfaces and be fully integrated. Everything comes back to common. I would guess similar to the way commonBitzi makes requests for bitzi tickets, but instead of Xml.parsing the result, in this case it would Xslt.parse(?) the result and create commonResults which can then be handled like any other search.


Anonymous
Sun 02 Oct 2005 12:27:50 AM UTC, comment #3: 

So you think the unix way is "not clean".

Anyway xsltproc is just an application that is an userinterface (or something like that) for libxslt. So it's not hard to link the same functionality in.
About gdome_xslt, it uses libxslt, too. We don't need the additional functionality that gdome_xslt provides, at least now.

It's just an easy way to extend mldonkeys functionality, without putting yet another lib. in. (So it would be an runtime option if you want to provide the xsltproc binary.) However in the long run we perhaps should link the functionality in (if only for easy distribution and performance reasons).

When this is too long around without getting a propper patch i'll move it to another tracker. (I like to do it, but i'm not sure when i will. So anyone may feel invited.)

Amorphous <amorphous>
Sat 01 Oct 2005 10:08:51 PM UTC, comment #2: 

This is not a patch for mldonkey. Maybe tasks would be a better place if you plan to write this?

Executing extenal binaries is not clean. Maybe some bindings would help.

http://helm.cs.unibo.it/software/gdome_xslt/

Anonymous
Sat 01 Oct 2005 08:21:38 PM UTC, comment #1: 

replace QUERY and execute the following to test it:
wget -O tpb.html 'http://thepiratebay.org/search.php?q=QUERY'
xsltproc --html --warnnet tpb.xslt tpb.html >out.xml

Amorphous <amorphous>
Sat 01 Oct 2005 07:50:50 PM UTC, original submission:  

We can then incoorporate different external searches or other things into mldonkey, without recompiling for every change/addition.

I used xsltproc to test it out. http://xmlsoft.org/XSLT/xsltproc2.html
We might just execute the external xsltproc binary from mldonkey and translate the output into results.
But I didn't code that yet.

Amorphous <amorphous>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #8897:  tpb.xslt added by amorphous (884B - application/xml - transforms the html from the piratebay search results into name, link xml element pairs)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-10-06 spiralvoice Reassign ItemFrom group mldonkey, a multi-networks file-sharing client, patch tracker To group mldonkey, a multi-networks file-sharing client, task tracker
2005-10-01 amorphous StatusNone Postponed
2005-10-01 amorphous Attached File- Added tpb.xslt, #5272

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code