View Single Post
Old 02-03-2006, 06:46 PM   #11
BasilC
Zealot
BasilC is on a distinguished road
 
BasilC's Avatar
 
Posts: 129
Karma: 60
Join Date: Feb 2003
Location: London England
Device: Palm Tungsten T3
Quote:
Originally Posted by Laurens
Sunrise can rewrite links on-the-fly, making it possible to go straight to the PDA-friendly version (usually the "printer-friendly" version) of a page.

Taking the feed you mentioned as an example, it can rewrite
http://www.opendemocracy.net/debates...articleId=3233
to
http://www.opendemocracy.net/article...articleId=3233

Link rewriting filters are easy to write, provided you have some knowledge of regular expressions.
Sounds perfect, but I need talking through it a bit.

In Sunrise XP I presumably go to Link Filter and add a regular expression that will match all the links to the articles?

If a typical link to an article looks like this:

<link>http://www.opendemocracy.net/debates/article.jsp?id=1&debateId=67&articleId=3239</link>
could I use articleId as a regular expression? Or is there more to it than that?

Then I select Rewrite Links Matching This Pattern?

And write somthing in the Rewrite box. But what exactly?
BasilC is offline   Reply With Quote