Subject: Re: [xsl] xpath / xslt function library for working with URLs From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx> Date: Mon, 27 Feb 2012 16:04:27 +0100 |
For a EXSLT solution being able to deal with UTF-8 url-encoded URIs you can take the solution from this webcast slide: http://www-01.ibm.com/support/docview.wss?uid=swg27019118&aid=1#page=15 That solution is based on str:tokenize() and str:decode-uri() EXSLT calls. The problem I see for you is not on the processing side of the URL by Oleg's or my method. The problem will be on how to access the URL from within a stylesheet! For Oleg's stylesheet you will have to pass the URL as parameter. In DataPower appliance XSLT compiler we can use extension variable "dp:variable('var://service/URI')" to access it. So it depends on the XSLT processor you use ... Mit besten Gruessen / Best wishes, Hermann Stamm-Wilbrandt Level 3 support for XML Compiler team and Fixpack team lead WebSphere DataPower SOA Appliances https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/ ---------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 |------------> | From: | |------------> >-------------------------------------------------------------------------- -------------------------------------------------------------------| |Dimitre Novatchev <dnovatchev@xxxxxxxxx> | >-------------------------------------------------------------------------- -------------------------------------------------------------------| |------------> | To: | |------------> >-------------------------------------------------------------------------- -------------------------------------------------------------------| |xsl-list@xxxxxxxxxxxxxxxxxxxxxx, | >-------------------------------------------------------------------------- -------------------------------------------------------------------| |------------> | Date: | |------------> >-------------------------------------------------------------------------- -------------------------------------------------------------------| |02/22/2012 07:02 PM | >-------------------------------------------------------------------------- -------------------------------------------------------------------| |------------> | Subject: | |------------> >-------------------------------------------------------------------------- -------------------------------------------------------------------| |Re: [xsl] xpath / xslt function library for working with URLs | >-------------------------------------------------------------------------- -------------------------------------------------------------------| On Wed, Feb 22, 2012 at 8:52 AM, Peter Rushforth <peter.rushforth@xxxxxxxxx> wrote: > Hi, > > I'm looking for a function library that can parse URLs and return > parameters and values. Is there such a thing publicly known? > I don't want to have to re-invent the wheel! For a start see this XSLT 1.0 solution -- you can easily produce the desired xsl:function from it: http://stackoverflow.com/a/9212032 -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- To avoid situations in which you might make mistakes may be the biggest mistake of all ------------------------------------ Quality means doing it right when no one is looking. ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play ------------------------------------- Facts do not cease to exist because they are ignored. ------------------------------------- I finally figured out the only reason to be alive is to enjoy it.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xpath / xslt function lib, Dimitre Novatchev | Thread | [xsl] A regular expression for the , Costello, Roger L. |
[xsl] Proposed classes XSLT April 2, G. Ken Holman | Date | Re: [xsl] A regular expression for , Hermann Stamm-Wilbra |
Month |