[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xpath / xslt function library for working with URL

Subject: Re: xpath / xslt function library for working with URLs
From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Mon, 27 Feb 2012 16:04:27 +0100
Re:  xpath / xslt function library for working with URL
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.