[Filterproxy-devel] Re: e: FilterProxy XSLT
Brought to you by:
mcelrath
From: Bob M. <mce...@dr...> - 2002-01-08 17:14:53
|
Mario Lang [la...@zi...] wrote: > Bob McElrath <mce...@dr...> writes: >=20 > > Mario Lang [la...@zi...] wrote: > [...] > >=20 > > OOOh!! Neato! > >=20 > > I'd be very interested! > >=20 > Here is what I have currently: >=20 > Comments: > 1. For an example, add a XSLT entry for http://(www\\.)slashdot.org/$ > Set the stylesheet name to xpath-filter.xsl > Add parameter locator with value > /html/body/table[2]/tr/td/table[2]/tr/td[2]/font > Add parameter base with value > 'http://slashdot.org/' > What does that do? > It extracts the articles table from slashdot, > and removes all the other tables around it. > Tip: If you want to create a locator option for another page, > use xmllint --html --shell filename.html and simply > use cd|ls|cat to change where you want to be and do pwd. > 2. What is lacking: > The xsl stylesheet path is hardcoded currently to /usr/share/filterpro= xy/xsl/ > Stylesheet name has no select listbox. You have to know the names. > No README or anything like that... >=20 > Comments are welcome. > Especially about how to do the stylesheet path. Make it a global > XSLT option? Where should they go... Neato. I'll take a closer look at it when I get home from work tonight. My understanding of xslt is poor at best, I'm interested to see what it can do! > Do you have a CVS for filterproxy? Yes, it's on sourceforge. http://sourceforge.net/projects/filterproxy. You should check that your module works with it. (may require translation of a= ny html files) I've added a number of cool features, and changed Parse::ePerl -> HTML::Mas= on for the config files. I *really* need to get 0.30 out. I'm sitting on a l= ot of changes here. Cheers, -- Bob Bob McElrath (rsm...@st...)=20 Univ. of Wisconsin at Madison, Department of Physics |