xsl-list
[Top] [All Lists]

Re: [xsl] xpath / xslt function library for working with URLs

2012-02-27 09:04:55
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(_at_)gmail(_dot_)com>                          
                                                                           |
  
---------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
---------------------------------------------------------------------------------------------------------------------------------------------|
  |xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)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(_dot_)rushforth(_at_)gmail(_dot_)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(_at_)lists(_dot_)mulberrytech(_dot_)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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>