Dorothea, as others have mentioned, you can either use Saxon as your XPath processor (which implements XSLT 2 and therefore includes the XPath function fn:escape-html-uri
http://www.w3.org/TR/xpath-functions/#func-escape-html-uri To do this, you need to configure Saxon as an XSLT processor in the Cocoon sitemap used by your Manakin theme. Alternatively, you can add this escaping as a separate pipeline stage in your theme, using Cocoon's EncodeURLTransformer: http://cocoon.apache.org/2.1/userdocs/encodeurl-transformer.html With this approach, your XSLT emits un-escaped URLs, and is followed by an "encodeURL" pipeline stage which escapes the URLs, prior to sending to the browser. Cheers Con On Wed, 2007-11-07 at 15:16 -0600, Dorothea Salo wrote: > Hi, all, > > If I can divert a tiny bit of attention from the testathon... I'm > trying to make author names on item-display pages clickable. The URL > pattern for this is "browse-author-items?author=" plus the author's > URL-encoded name -- which is the problem, as there doesn't seem to be > any easy XSLT way to get URL encoding for a string. > > Ideas? Or should I not worry about the encoding and just let the browser > worry? > > Dorothea > -- Conal Tuohy New Zealand Electronic Text Centre www.nzetc.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

