Edward Rayl wrote:


OK, having finally got fed up with the Linux Today site, I decided that I should try to get to grips with some more of JPluck's features.

Unfortunately, I cannot find any meaningful documentation and I'm afraid that I am already stuck!

What I want to do first of all is transform the uri's of the summary articles to their print friendly alternatives.

The form of the normal article uri's is:
  "http:\\linuxtoday.com/.*/yyyymmddaaabbXXYYZZ"

where yyyymmdd is the date, aa and bb are numbers and XX, YY, ZZ are upper case letters. ".*" is a folder name.

And I need to transform that to

"http:\\linuxtoday.com/.*/mailprint.php3?action=pv&ltsn=yyyy-mm-dd-aaa-bb-XX-YY-ZZ"


If there anyone who can help?


If the "str:substitute(String s, String regexp, String replace)" expression function allows references from the source regex to be used in the replacement I can work it out for myself as I am familiar with regex but I am just not sure.


JPluck's strength is allowing XSLT processing. Even though I'm a Java programmer myself, I prefer XSLT for this kind of stuff. Even if you get this work, you still only have half a job. From a JPluck perspective, all good plucks, i.e. The Register, use XPath expressions to pluck the article and throw away the fluff. For this you need need the DOM Inspector in Mozilla. Take a look at the various scripts that ship with JPluck.

Thanks Ed.

I was kinda hoping that I could start with something a bit easier as my
XSLT skills are rather basic as yet. I was going to give that a go next.

--
Julian Knight,  http://www.knightnet.org.uk/
 Sheffield, United Kingdom
 Security, Directory, Messaging, Network & PC Consultant
 Instant Messaging:[EMAIL PROTECTED], Yahoo!=knighjm



--
Julian Knight,  http://www.knightnet.org.uk/
 Sheffield, United Kingdom
 Security, Directory, Messaging, Network & PC Consultant
 Instant Messaging:[EMAIL PROTECTED], Yahoo!=knighjm
_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list

Reply via email to