[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] xpath / xslt function library for working with URLs
From:       Hermann Stamm-Wilbrandt <STAMMW () de ! ibm ! com>
Date:       2012-02-27 15:04:27
Message-ID: OFA86CED5C.297CF44F-ONC12579B1.00524A6F-C12579B1.0052D035 () de ! ibm ! com
[Download RAW message or body]

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@gmail.com>                                           \
|  >---------------------------------------------------------------------------------------------------------------------------------------------|
 |------------>
> To:        |
> ------------>
  >---------------------------------------------------------------------------------------------------------------------------------------------|
  |xsl-list@lists.mulberrytech.com,                                                   \
|  >---------------------------------------------------------------------------------------------------------------------------------------------|
 |------------>
> 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@gmail.com> 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
--~--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic